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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: D = None
        self.q: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: D = None
        self.w: D = None
        self.q: A = None
        self.v: D = None
        self.x: D = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: H = None
        self.z: H = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: D = None
        self.q: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: D = None
        self.w: D = None
        self.q: A = None
        self.v: D = None
        self.x: D = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: H = None
        self.z: H = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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