class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: J = None
        self.z: E = None
        self.p: D = None
        self.q: F = None
        self.y: J = None
        self.o: D = None
        self.w: E = None
        self.v: I = None
        self.u: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: B = None
        self.o: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: A = None
        self.z: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: H = None
        self.r: B = None
        self.z: E = None
        self.s: C = None
        self.t: H = None
        self.v: H = None
        self.p: C = None
        self.y: C = None
        self.o: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: D = None
        self.p: E = None
        self.s: G = None
        self.u: E = None
        self.txt = txt

e = A("e")
m = B("m")
c = C("c")
n = D("n")
b = E("b")
d = F("d")
a = G("a")
l = H("l")
j = I("j")
f = J("f")

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: B = None
        self.o: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: A = None
        self.z: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: H = None
        self.r: B = None
        self.z: E = None
        self.s: C = None
        self.t: H = None
        self.v: H = None
        self.p: C = None
        self.y: C = None
        self.o: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: D = None
        self.p: E = None
        self.s: G = None
        self.u: E = None
        self.txt = txt

e = A("e")
m = B("m")
c = C("c")
n = D("n")
b = E("b")
d = F("d")
a = G("a")
l = H("l")
j = I("j")
f = J("f")

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