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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.v: E = None
        self.o: H = None
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: C = None
        self.z: G = None
        self.s: H = None
        self.w: B = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: H = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: G = None
        self.s: D = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: D = None
        self.t: H = None
        self.v: D = None
        self.z: H = None
        self.q: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.v: E = None
        self.o: H = None
        self.x: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.v: C = None
        self.z: G = None
        self.s: H = None
        self.w: B = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: H = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: G = None
        self.s: D = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: D = None
        self.t: H = None
        self.v: D = None
        self.z: H = None
        self.q: C = None
        self.txt = txt

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

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

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