class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: B = None
        self.o: F = None
        self.z: B = None
        self.u: A = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: G = None
        self.p: B = None
        self.q: C = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: B = None
        self.y: E = None
        self.p: H = None
        self.o: F = None
        self.s: A = None
        self.t: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: E = None
        self.txt = txt

h = A("h")
i = B("i")
g = C("g")
n = D("n")
e = E("e")
b = F("b")
j = G("j")
k = H("k")
m = C("m")

h.q = e
h.u = j
i.y = j
g.v = n
g.q = i
g.z = i
g.o = b
g.u = h
g.r = j
n.o = k
e.v = g
b.y = e
b.w = j
b.u = j
b.p = i
b.q = g
j.u = n
j.z = i
j.y = e
j.t = e
j.p = k
j.o = b
j.s = h
j.v = m
k.v = j
k.p = e
m.v = n
m.q = i
m.z = i
m.o = b
m.u = h
m.r = j
assert i.y.v.o.txt == "
class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: B = None
        self.o: F = None
        self.z: B = None
        self.u: A = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.w: G = None
        self.p: B = None
        self.q: C = None
        self.u: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: B = None
        self.y: E = None
        self.p: H = None
        self.o: F = None
        self.s: A = None
        self.t: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: E = None
        self.txt = txt

h = A("h")
i = B("i")
g = C("g")
n = D("n")
e = E("e")
b = F("b")
j = G("j")
k = H("k")
m = C("m")

h.q = e
h.u = j
i.y = j
g.v = n
g.q = i
g.z = i
g.o = b
g.u = h
g.r = j
n.o = k
e.v = g
b.y = e
b.w = j
b.u = j
b.p = i
b.q = g
j.u = n
j.z = i
j.y = e
j.t = e
j.p = k
j.o = b
j.s = h
j.v = m
k.v = j
k.p = e
m.v = n
m.q = i
m.z = i
m.o = b
m.u = h
m.r = j
assert i.y.v.o.txt == "b"