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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: C = None
        self.z: I = None
        self.q: D = None
        self.r: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: D = None
        self.u: E = None
        self.q: I = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: J = None
        self.v: F = None
        self.z: I = None
        self.p: F = None
        self.y: G = None
        self.u: G = None
        self.t: E = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: C = None
        self.z: I = None
        self.q: D = None
        self.r: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: D = None
        self.u: E = None
        self.q: I = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: J = None
        self.v: F = None
        self.z: I = None
        self.p: F = None
        self.y: G = None
        self.u: G = None
        self.t: E = None
        self.o: G = None
        self.txt = txt

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

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

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

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