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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: F = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: F = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: E = None
        self.q: E = None
        self.v: C = None
        self.o: F = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: E = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: F = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: F = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: E = None
        self.q: E = None
        self.v: C = None
        self.o: F = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: E = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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