class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: H = None
        self.u: G = None
        self.o: C = None
        self.q: G = None
        self.y: G = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: F = None
        self.z: E = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

e = A("e")
h = B("h")
j = C("j")
f = D("f")
b = E("b")
n = F("n")
a = G("a")
c = H("c")
l = D("l")

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: F = None
        self.z: E = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

e = A("e")
h = B("h")
j = C("j")
f = D("f")
b = E("b")
n = F("n")
a = G("a")
c = H("c")
l = D("l")

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