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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: E = None
        self.p: H = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: E = None
        self.y: A = None
        self.v: A = None
        self.x: B = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: H = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: D = None
        self.u: F = None
        self.t: B = None
        self.v: F = None
        self.x: F = None
        self.z: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: C = None
        self.v: A = None
        self.p: C = None
        self.x: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: E = None
        self.p: H = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: E = None
        self.y: A = None
        self.v: A = None
        self.x: B = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: H = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: D = None
        self.u: F = None
        self.t: B = None
        self.v: F = None
        self.x: F = None
        self.z: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: C = None
        self.v: A = None
        self.p: C = None
        self.x: B = None
        self.txt = txt

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

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