class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: E = None
        self.q: C = None
        self.z: B = None
        self.w: C = None
        self.s: D = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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