class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: E = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: G = None
        self.o: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: E = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: G = None
        self.o: G = None
        self.txt = txt

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

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