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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: C = None
        self.p: I = None
        self.z: F = None
        self.o: C = None
        self.x: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: A = None
        self.y: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: B = None
        self.t: D = None
        self.r: A = None
        self.o: C = None
        self.q: A = None
        self.u: D = None
        self.w: B = None
        self.p: H = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: C = None
        self.p: I = None
        self.z: F = None
        self.o: C = None
        self.x: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: A = None
        self.y: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: B = None
        self.t: D = None
        self.r: A = None
        self.o: C = None
        self.q: A = None
        self.u: D = None
        self.w: B = None
        self.p: H = None
        self.s: G = None
        self.txt = txt

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

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