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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: F = None
        self.v: A = None
        self.o: G = None
        self.z: G = None
        self.y: G = None
        self.x: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: B = None
        self.r: H = None
        self.y: F = None
        self.q: H = None
        self.w: F = None
        self.x: B = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: F = None
        self.v: A = None
        self.o: G = None
        self.z: G = None
        self.y: G = None
        self.x: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: B = None
        self.r: H = None
        self.y: F = None
        self.q: H = None
        self.w: F = None
        self.x: B = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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