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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: E = None
        self.s: J = None
        self.r: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: A = None
        self.y: H = None
        self.s: I = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: J = None
        self.w: B = None
        self.r: J = None
        self.o: G = None
        self.z: J = None
        self.u: H = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: G = None
        self.x: G = None
        self.z: B = None
        self.u: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: F = None
        self.v: E = None
        self.t: G = None
        self.z: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: E = None
        self.s: J = None
        self.r: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: A = None
        self.y: H = None
        self.s: I = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: J = None
        self.w: B = None
        self.r: J = None
        self.o: G = None
        self.z: J = None
        self.u: H = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: G = None
        self.x: G = None
        self.z: B = None
        self.u: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: F = None
        self.v: E = None
        self.t: G = None
        self.z: H = None
        self.txt = txt

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

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