class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.y: H = None
        self.x: A = None
        self.t: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: E = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.y: H = None
        self.x: A = None
        self.t: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: E = None
        self.u: A = None
        self.txt = txt

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

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

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

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