class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: J = None
        self.r: G = None
        self.t: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: I = None
        self.y: A = None
        self.t: B = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: E = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: B = None
        self.t: B = None
        self.s: J = None
        self.x: D = None
        self.z: E = None
        self.v: B = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: J = None
        self.r: G = None
        self.t: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: I = None
        self.y: A = None
        self.t: B = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: E = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: B = None
        self.t: B = None
        self.s: J = None
        self.x: D = None
        self.z: E = None
        self.v: B = None
        self.w: B = None
        self.txt = txt

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

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

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