class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: C = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: E = None
        self.o: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: C = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: E = None
        self.o: D = None
        self.txt = txt

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

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