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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: J = None
        self.y: C = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.x: B = None
        self.y: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: A = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: F = None
        self.t: D = None
        self.z: C = None
        self.u: G = None
        self.y: G = None
        self.o: D = None
        self.p: A = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: J = None
        self.y: C = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.x: B = None
        self.y: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: A = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: F = None
        self.t: D = None
        self.z: C = None
        self.u: G = None
        self.y: G = None
        self.o: D = None
        self.p: A = None
        self.v: F = None
        self.txt = txt

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

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

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

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