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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: A = None
        self.v: B = None
        self.y: A = None
        self.t: A = None
        self.q: A = None
        self.p: G = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: H = None
        self.o: H = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: A = None
        self.v: B = None
        self.y: A = None
        self.t: A = None
        self.q: A = None
        self.p: G = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: H = None
        self.o: H = None
        self.txt = txt

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

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

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