class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: F = None
        self.x: A = None
        self.r: B = None
        self.s: D = None
        self.p: F = None
        self.v: E = None
        self.u: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: E = None
        self.w: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: E = None
        self.w: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: C = None
        self.txt = txt

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

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