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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: B = None
        self.w: E = None
        self.u: E = None
        self.x: E = None
        self.s: D = None
        self.v: D = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: A = None
        self.o: A = None
        self.v: B = None
        self.z: H = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: G = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: D = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: E = None
        self.v: A = None
        self.w: D = None
        self.r: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.r: B = None
        self.w: E = None
        self.u: E = None
        self.x: E = None
        self.s: D = None
        self.v: D = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: A = None
        self.o: A = None
        self.v: B = None
        self.z: H = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: G = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: D = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: E = None
        self.v: A = None
        self.w: D = None
        self.r: G = None
        self.txt = txt

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

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