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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: J = None
        self.p: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: F = None
        self.z: F = None
        self.r: B = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: J = None
        self.p: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: F = None
        self.z: F = None
        self.r: B = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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