class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: C = None
        self.z: D = None
        self.s: G = None
        self.w: H = None
        self.o: C = None
        self.p: B = None
        self.r: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: A = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: C = None
        self.r: E = None
        self.z: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: A = None
        self.u: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: C = None
        self.r: E = None
        self.z: G = None
        self.txt = txt

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

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

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

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