class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: C = None
        self.o: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: A = None
        self.s: G = None
        self.q: G = None
        self.v: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: H = None
        self.w: E = None
        self.q: J = None
        self.x: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: D = None
        self.r: J = None
        self.t: B = None
        self.o: H = None
        self.v: B = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: G = None
        self.p: B = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: J = None
        self.x: G = None
        self.v: A = None
        self.w: B = None
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: H = None
        self.q: F = None
        self.s: B = None
        self.v: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: A = None
        self.s: G = None
        self.q: G = None
        self.v: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: H = None
        self.w: E = None
        self.q: J = None
        self.x: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: D = None
        self.r: J = None
        self.t: B = None
        self.o: H = None
        self.v: B = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: G = None
        self.p: B = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: J = None
        self.x: G = None
        self.v: A = None
        self.w: B = None
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: H = None
        self.q: F = None
        self.s: B = None
        self.v: I = None
        self.txt = txt

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

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