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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: D = None
        self.p: F = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: F = None
        self.y: F = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: G = None
        self.t: A = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: F = None
        self.y: A = None
        self.w: B = None
        self.txt = txt

n = A("n")
a = B("a")
f = C("f")
j = D("j")
i = E("i")
k = F("k")
e = G("e")
l = H("l")
h = A("h")

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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: D = None
        self.p: F = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: F = None
        self.y: F = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: G = None
        self.t: A = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: F = None
        self.y: A = None
        self.w: B = None
        self.txt = txt

n = A("n")
a = B("a")
f = C("f")
j = D("j")
i = E("i")
k = F("k")
e = G("e")
l = H("l")
h = A("h")

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