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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: A = None
        self.p: C = None
        self.y: H = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: F = None
        self.s: A = None
        self.u: B = None
        self.o: F = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: A = None
        self.w: E = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: A = None
        self.p: C = None
        self.y: H = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: F = None
        self.s: A = None
        self.u: B = None
        self.o: F = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: A = None
        self.w: E = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

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