class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.r: B = None
        self.o: F = None
        self.x: G = None
        self.v: I = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: H = None
        self.o: B = None
        self.q: I = None
        self.w: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: B = None
        self.r: G = None
        self.y: G = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: E = None
        self.q: A = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.u: H = None
        self.o: B = None
        self.q: I = None
        self.w: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: B = None
        self.r: G = None
        self.y: G = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.y: E = None
        self.q: A = None
        self.o: B = None
        self.txt = txt

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

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