class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: H = None
        self.x: H = None
        self.z: H = None
        self.s: H = None
        self.u: H = None
        self.o: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: B = None
        self.r: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: B = None
        self.r: B = None
        self.txt = txt

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

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