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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: D = None
        self.o: C = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: B = None
        self.y: D = None
        self.o: E = None
        self.r: F = None
        self.t: C = None
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: D = None
        self.o: C = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: B = None
        self.y: D = None
        self.o: E = None
        self.r: F = None
        self.t: C = None
        self.z: G = None
        self.txt = txt

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

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