class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: I = None
        self.u: D = None
        self.o: C = None
        self.s: H = None
        self.x: F = None
        self.z: A = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: C = None
        self.p: D = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: E = None
        self.v: F = None
        self.y: B = None
        self.txt = txt

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

k.t = j
k.v = j
k.u = i
k.o = d
k.s = e
k.x = c
k.z = n
l.u = e
d.t = n
d.r = c
d.y = m
d.w = m
d.o = e
d.q = k
d.u = f
i.z = m
i.w = j
m.v = n
m.o = d
m.p = c
m.r = j
m.t = j
m.y = e
c.w = i
c.u = i
c.q = f
c.x = f
c.t = e
c.r = m
c.z = d
c.s = j
f.s = l
f.y = c
e.r = m
e.t = m
e.w = d
e.p = i
j.o = f
j.t = m
j.v = c
j.y = l
n.t = j
n.v = j
n.u = i
n.o = d
n.s = e
n.x = c
n.z = k
assert i.z.v.u.z.txt == "
class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: I = None
        self.u: D = None
        self.o: C = None
        self.s: H = None
        self.x: F = None
        self.z: A = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: C = None
        self.p: D = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: E = None
        self.v: F = None
        self.y: B = None
        self.txt = txt

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

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