class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.r: B = None
        self.s: B = None
        self.t: C = None
        self.p: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: C = None
        self.o: J = None
        self.z: G = None
        self.s: H = None
        self.q: C = None
        self.r: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: G = None
        self.w: J = None
        self.txt = txt

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: C = None
        self.o: J = None
        self.z: G = None
        self.s: H = None
        self.q: C = None
        self.r: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: G = None
        self.w: J = None
        self.txt = txt

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

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

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

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