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

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: H = None
        self.z: I = None
        self.s: B = None
        self.x: J = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: D = None
        self.s: B = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: H = None
        self.x: D = None
        self.o: E = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: G = None
        self.r: F = None
        self.p: A = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: G = None
        self.u: I = None
        self.r: A = None
        self.x: G = None
        self.o: I = None
        self.w: E = None
        self.v: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: H = None
        self.z: I = None
        self.s: B = None
        self.x: J = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.x: D = None
        self.s: B = None
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: H = None
        self.x: D = None
        self.o: E = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: G = None
        self.r: F = None
        self.p: A = None
        self.w: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: G = None
        self.u: I = None
        self.r: A = None
        self.x: G = None
        self.o: I = None
        self.w: E = None
        self.v: C = None
        self.txt = txt

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

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