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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: G = None
        self.o: E = None
        self.s: J = None
        self.y: E = None
        self.r: H = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: G = None
        self.u: H = None
        self.w: H = None
        self.v: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: I = None
        self.v: C = None
        self.txt = txt

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

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

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

k.z = h
k.o = l
k.s = m
k.q = f
k.x = g
k.w = g
k.u = n
j.s = f
j.r = l
j.t = g
j.y = g
j.u = g
j.v = n
j.w = k
j.o = a
a.z = k
a.v = m
a.o = l
a.y = l
a.s = f
a.r = g
a.x = g
n.o = m
n.t = m
l.x = c
l.y = m
l.u = g
l.w = g
l.v = f
c.p = k
c.z = m
m.q = k
m.r = k
m.y = f
m.z = f
m.t = n
m.v = n
m.p = c
m.s = l
m.o = h
g.t = a
g.v = a
g.r = h
h.r = j
h.v = c
h.z = c
h.o = c
h.x = m
h.q = m
h.s = m
h.t = k
f.v = c
f.x = h
f.y = m
f.q = m
f.o = k
assert l.y.s.x.z.t.txt == "
class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: E = None
        self.s: G = None
        self.q: J = None
        self.x: H = None
        self.u: D = None
        self.w: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: G = None
        self.o: E = None
        self.s: J = None
        self.y: E = None
        self.r: H = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: G = None
        self.u: H = None
        self.w: H = None
        self.v: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: I = None
        self.v: C = None
        self.txt = txt

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

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

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

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