class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: A = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: G = None
        self.r: B = None
        self.y: H = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: D = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: C = None
        self.z: F = None
        self.v: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.s: A = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: G = None
        self.r: B = None
        self.y: H = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: D = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: C = None
        self.z: F = None
        self.v: F = None
        self.txt = txt

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

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