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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: I = None
        self.o: B = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: A = None
        self.t: G = None
        self.q: A = None
        self.p: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: J = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: I = None
        self.o: B = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: A = None
        self.t: G = None
        self.q: A = None
        self.p: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: J = None
        self.txt = txt

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

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

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

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

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