class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: E = None
        self.q: B = None
        self.t: F = None
        self.r: H = None
        self.v: H = None
        self.w: E = None
        self.x: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: A = None
        self.r: E = None
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: F = None
        self.z: C = None
        self.u: E = None
        self.w: C = None
        self.r: C = None
        self.x: D = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: A = None
        self.r: E = None
        self.p: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: F = None
        self.z: C = None
        self.u: E = None
        self.w: C = None
        self.r: C = None
        self.x: D = None
        self.s: F = None
        self.txt = txt

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

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