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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: I = None
        self.q: E = None
        self.t: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.p: I = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: I = None
        self.q: E = None
        self.t: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.p: I = None
        self.o: B = None
        self.txt = txt

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

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