class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: D = None
        self.s: C = None
        self.v: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: I = None
        self.y: F = None
        self.p: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: D = None
        self.z: J = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: F = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: I = None
        self.y: F = None
        self.p: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: D = None
        self.z: J = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: F = None
        self.s: F = None
        self.txt = txt

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

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