class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: J = None
        self.t: E = None
        self.s: G = None
        self.p: J = None
        self.r: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: G = None
        self.x: H = None
        self.o: A = None
        self.p: D = None
        self.r: C = None
        self.t: C = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: H = None
        self.u: A = None
        self.q: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: D = None
        self.x: G = None
        self.y: D = None
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: D = None
        self.z: I = None
        self.r: F = None
        self.u: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: G = None
        self.x: H = None
        self.o: A = None
        self.p: D = None
        self.r: C = None
        self.t: C = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: H = None
        self.u: A = None
        self.q: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: D = None
        self.x: G = None
        self.y: D = None
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: D = None
        self.z: I = None
        self.r: F = None
        self.u: C = None
        self.txt = txt

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

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