class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: E = None
        self.t: D = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: I = None
        self.o: H = None
        self.q: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: B = None
        self.v: F = None
        self.q: F = None
        self.y: B = None
        self.o: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: I = None
        self.o: H = None
        self.q: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: I = None
        self.s: B = None
        self.v: F = None
        self.q: F = None
        self.y: B = None
        self.o: C = None
        self.txt = txt

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

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