class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: G = None
        self.z: B = None
        self.o: G = None
        self.t: G = None
        self.r: H = None
        self.x: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: F = None
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: D = None
        self.r: D = None
        self.z: G = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.s: F = None
        self.x: C = None
        self.v: B = None
        self.r: A = None
        self.o: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: F = None
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: D = None
        self.r: D = None
        self.z: G = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.s: F = None
        self.x: C = None
        self.v: B = None
        self.r: A = None
        self.o: D = None
        self.txt = txt

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

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