class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: H = None
        self.y: C = None
        self.v: H = None
        self.q: A = None
        self.p: E = None
        self.t: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: H = None
        self.v: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: D = None
        self.o: G = None
        self.q: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: H = None
        self.v: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: D = None
        self.o: G = None
        self.q: C = None
        self.txt = txt

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

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