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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: G = None
        self.o: D = None
        self.z: C = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: G = None
        self.u: B = None
        self.o: B = None
        self.s: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: E = None
        self.r: B = None
        self.w: A = None
        self.v: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: G = None
        self.o: D = None
        self.z: C = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: G = None
        self.u: B = None
        self.o: B = None
        self.s: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: E = None
        self.r: B = None
        self.w: A = None
        self.v: F = None
        self.txt = txt

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

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