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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: C = None
        self.v: H = None
        self.y: D = None
        self.x: F = None
        self.q: E = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: B = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: C = None
        self.s: D = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: H = None
        self.t: E = None
        self.w: D = None
        self.p: D = None
        self.s: G = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: A = None
        self.v: H = None
        self.o: A = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.p: D = None
        self.y: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: C = None
        self.v: H = None
        self.y: D = None
        self.x: F = None
        self.q: E = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: B = None
        self.w: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: C = None
        self.s: D = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: H = None
        self.t: E = None
        self.w: D = None
        self.p: D = None
        self.s: G = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: A = None
        self.v: H = None
        self.o: A = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: D = None
        self.p: D = None
        self.y: E = None
        self.txt = txt

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

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