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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: A = None
        self.s: J = None
        self.v: I = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: B = None
        self.u: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: F = None
        self.q: A = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: E = None
        self.o: E = None
        self.t: D = None
        self.w: F = None
        self.y: H = None
        self.x: F = None
        self.p: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: J = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.o: A = None
        self.s: J = None
        self.v: I = None
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: B = None
        self.u: G = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: F = None
        self.q: A = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.u: E = None
        self.o: E = None
        self.t: D = None
        self.w: F = None
        self.y: H = None
        self.x: F = None
        self.p: E = None
        self.txt = txt

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

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