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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: A = None
        self.u: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: A = None
        self.x: E = None
        self.s: F = None
        self.q: F = None
        self.u: D = None
        self.txt = txt

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

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

e = A("e")
n = B("n")
k = C("k")
f = D("f")
d = E("d")
h = F("h")
b = A("b")
a = C("a")
l = D("l")

e.z = d
e.o = b
e.v = n
n.x = a
n.u = k
k.s = e
k.q = e
k.u = a
f.p = n
f.v = b
f.x = d
f.s = h
f.q = h
f.u = l
d.q = n
d.u = n
h.v = f
b.z = d
b.o = e
b.v = n
a.s = b
a.q = e
a.u = k
l.p = n
l.v = b
l.x = d
l.s = h
l.q = h
l.u = f
assert e.v.x.s.v.x.u.s.v.txt == "
class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: A = None
        self.u: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: A = None
        self.x: E = None
        self.s: F = None
        self.q: F = None
        self.u: D = None
        self.txt = txt

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

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

e = A("e")
n = B("n")
k = C("k")
f = D("f")
d = E("d")
h = F("h")
b = A("b")
a = C("a")
l = D("l")

e.z = d
e.o = b
e.v = n
n.x = a
n.u = k
k.s = e
k.q = e
k.u = a
f.p = n
f.v = b
f.x = d
f.s = h
f.q = h
f.u = l
d.q = n
d.u = n
h.v = f
b.z = d
b.o = e
b.v = n
a.s = b
a.q = e
a.u = k
l.p = n
l.v = b
l.x = d
l.s = h
l.q = h
l.u = f
assert e.v.x.s.v.x.u.s.v.txt == "n"