class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: G = None
        self.t: J = None
        self.s: I = None
        self.y: D = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: B = None
        self.u: D = None
        self.t: A = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: C = None
        self.s: H = None
        self.t: I = None
        self.v: D = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: E = None
        self.u: C = None
        self.o: I = None
        self.y: H = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: G = None
        self.t: G = None
        self.v: F = None
        self.p: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: G = None
        self.w: A = None
        self.p: A = None
        self.v: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: G = None
        self.t: J = None
        self.s: I = None
        self.y: D = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: B = None
        self.u: D = None
        self.t: A = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: C = None
        self.s: H = None
        self.t: I = None
        self.v: D = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: E = None
        self.u: C = None
        self.o: I = None
        self.y: H = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: G = None
        self.t: G = None
        self.v: F = None
        self.p: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: G = None
        self.w: A = None
        self.p: A = None
        self.v: B = None
        self.txt = txt

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

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