class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: C = None
        self.r: I = None
        self.y: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: C = None
        self.s: A = None
        self.r: J = None
        self.z: F = None
        self.y: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: I = None
        self.s: A = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: G = None
        self.z: C = None
        self.p: B = None
        self.w: A = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: C = None
        self.s: A = None
        self.r: J = None
        self.z: F = None
        self.y: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: I = None
        self.s: A = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: G = None
        self.z: C = None
        self.p: B = None
        self.w: A = None
        self.o: G = None
        self.txt = txt

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

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

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

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