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

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: A = None
        self.z: F = None
        self.t: F = None
        self.p: E = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: A = None
        self.q: H = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: B = None
        self.v: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: A = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: A = None
        self.z: F = None
        self.t: F = None
        self.p: E = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: A = None
        self.q: H = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: B = None
        self.v: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: A = None
        self.q: B = None
        self.x: E = None
        self.txt = txt

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

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