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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: D = None
        self.x: F = None
        self.u: H = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: E = None
        self.v: D = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: D = None
        self.x: F = None
        self.u: H = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: E = None
        self.v: D = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

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

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

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