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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: A = None
        self.x: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: F = None
        self.z: H = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: A = None
        self.x: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: F = None
        self.z: H = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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