class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: D = None
        self.s: C = None
        self.u: D = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: D = None
        self.t: D = None
        self.r: A = None
        self.z: E = None
        self.y: E = None
        self.o: D = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: D = None
        self.t: D = None
        self.r: A = None
        self.z: E = None
        self.y: E = None
        self.o: D = None
        self.v: D = None
        self.txt = txt

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

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