class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: B = None
        self.o: H = None
        self.u: B = None
        self.y: G = None
        self.z: C = None
        self.x: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: C = None
        self.v: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

e = A("e")
m = B("m")
n = C("n")
b = D("b")
k = E("k")
d = F("d")
h = G("h")
l = H("l")

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: C = None
        self.v: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

e = A("e")
m = B("m")
n = C("n")
b = D("b")
k = E("k")
d = F("d")
h = G("h")
l = H("l")

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