class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: E = None
        self.q: E = None
        self.z: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: D = None
        self.o: G = None
        self.t: E = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: C = None
        self.o: G = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: B = None
        self.o: A = None
        self.w: G = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: G = None
        self.t: D = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.x: E = None
        self.y: D = None
        self.w: B = None
        self.v: D = None
        self.s: E = None
        self.txt = txt

m = A("m")
j = B("j")
a = C("a")
g = D("g")
h = E("h")
e = F("e")
d = G("d")
k = A("k")
b = G("b")

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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: D = None
        self.o: G = None
        self.t: E = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: C = None
        self.o: G = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: B = None
        self.o: A = None
        self.w: G = None
        self.v: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: G = None
        self.t: D = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.x: E = None
        self.y: D = None
        self.w: B = None
        self.v: D = None
        self.s: E = None
        self.txt = txt

m = A("m")
j = B("j")
a = C("a")
g = D("g")
h = E("h")
e = F("e")
d = G("d")
k = A("k")
b = G("b")

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