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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: C = None
        self.x: D = None
        self.q: C = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: B = None
        self.t: A = None
        self.u: B = None
        self.r: C = None
        self.w: I = None
        self.o: A = None
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.z: I = None
        self.x: C = None
        self.r: F = None
        self.u: H = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: E = None
        self.p: E = None
        self.y: E = None
        self.r: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: B = None
        self.p: G = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: C = None
        self.x: D = None
        self.q: C = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: B = None
        self.t: A = None
        self.u: B = None
        self.r: C = None
        self.w: I = None
        self.o: A = None
        self.s: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.z: I = None
        self.x: C = None
        self.r: F = None
        self.u: H = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: E = None
        self.p: E = None
        self.y: E = None
        self.r: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: B = None
        self.p: G = None
        self.q: D = None
        self.txt = txt

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

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