class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: E = None
        self.t: D = None
        self.q: E = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: E = None
        self.w: G = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: C = None
        self.q: C = None
        self.p: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: G = None
        self.u: C = None
        self.w: D = None
        self.s: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: C = None
        self.s: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: E = None
        self.w: G = None
        self.v: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: C = None
        self.q: C = None
        self.p: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: G = None
        self.u: C = None
        self.w: D = None
        self.s: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: C = None
        self.s: A = None
        self.txt = txt

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

e.v = n
e.t = n
e.u = j
e.q = j
e.o = j
l.t = i
l.p = j
l.w = d
l.v = c
i.z = n
i.t = c
n.r = e
n.w = i
n.q = i
n.p = c
j.o = i
j.t = i
j.v = l
j.w = c
j.x = n
c.r = n
c.w = n
c.v = d
c.u = i
c.s = j
d.z = l
h.t = n
h.x = i
h.s = e
assert n.q.t.w.p.s.x.p.s.txt == "j"