class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: B = None
        self.z: B = None
        self.w: B = None
        self.x: B = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: D = None
        self.t: G = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: B = None
        self.z: B = None
        self.w: B = None
        self.x: B = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: D = None
        self.t: G = None
        self.w: D = None
        self.txt = txt

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

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

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

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