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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: H = None
        self.v: F = None
        self.u: E = None
        self.p: H = None
        self.y: B = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: I = None
        self.z: F = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: D = None
        self.x: D = None
        self.u: G = None
        self.o: G = None
        self.v: A = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: I = None
        self.z: B = None
        self.x: D = None
        self.t: D = None
        self.w: B = None
        self.r: G = None
        self.s: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: A = None
        self.u: A = None
        self.z: E = None
        self.q: F = None
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: H = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: I = None
        self.z: B = None
        self.w: D = None
        self.o: I = None
        self.s: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: H = None
        self.v: F = None
        self.u: E = None
        self.p: H = None
        self.y: B = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: I = None
        self.z: F = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: D = None
        self.x: D = None
        self.u: G = None
        self.o: G = None
        self.v: A = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: I = None
        self.z: B = None
        self.x: D = None
        self.t: D = None
        self.w: B = None
        self.r: G = None
        self.s: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: A = None
        self.u: A = None
        self.z: E = None
        self.q: F = None
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: H = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: I = None
        self.z: B = None
        self.w: D = None
        self.o: I = None
        self.s: D = None
        self.u: D = None
        self.txt = txt

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

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