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

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: H = None
        self.p: H = None
        self.q: F = None
        self.txt = txt

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

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

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

j.o = l
a.t = i
a.v = n
a.q = j
a.o = j
a.w = j
a.y = d
n.p = f
n.y = l
n.v = l
n.u = l
n.o = c
n.s = c
c.u = n
d.t = c
d.v = g
i.s = l
i.t = l
i.p = l
i.q = f
g.o = n
g.t = n
g.r = n
g.u = d
g.p = l
l.p = g
l.v = n
l.t = n
l.s = a
f.s = l
f.t = l
f.p = l
f.q = i
e.t = c
e.v = g
assert a.q.o.v.v.p.u.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: H = None
        self.p: H = None
        self.q: F = None
        self.txt = txt

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

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

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

j.o = l
a.t = i
a.v = n
a.q = j
a.o = j
a.w = j
a.y = d
n.p = f
n.y = l
n.v = l
n.u = l
n.o = c
n.s = c
c.u = n
d.t = c
d.v = g
i.s = l
i.t = l
i.p = l
i.q = f
g.o = n
g.t = n
g.r = n
g.u = d
g.p = l
l.p = g
l.v = n
l.t = n
l.s = a
f.s = l
f.t = l
f.p = l
f.q = i
e.t = c
e.v = g
assert a.q.o.v.v.p.u.t.u.txt == "n"