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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: I = None
        self.s: F = None
        self.o: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: G = None
        self.x: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: F = None
        self.o: F = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: H = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: F = None
        self.p: B = None
        self.s: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: I = None
        self.s: F = None
        self.o: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.p: G = None
        self.x: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: F = None
        self.o: F = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: H = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: F = None
        self.p: B = None
        self.s: H = None
        self.txt = txt

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

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