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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: F = None
        self.r: G = None
        self.s: C = None
        self.z: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: F = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: F = None
        self.r: G = None
        self.s: C = None
        self.z: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: F = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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