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

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

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: B = None
        self.u: C = None
        self.p: H = None
        self.t: H = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: C = None
        self.t: F = None
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: G = None
        self.p: H = None
        self.w: A = None
        self.z: A = None
        self.u: G = None
        self.y: B = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: D = None
        self.y: G = None
        self.z: D = None
        self.u: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: B = None
        self.u: C = None
        self.p: H = None
        self.t: H = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: C = None
        self.t: F = None
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: G = None
        self.p: H = None
        self.w: A = None
        self.z: A = None
        self.u: G = None
        self.y: B = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: D = None
        self.y: G = None
        self.z: D = None
        self.u: G = None
        self.txt = txt

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

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