class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: F = None
        self.x: G = None
        self.z: G = None
        self.v: H = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: J = None
        self.q: F = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: J = None
        self.q: F = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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