class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: G = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: B = None
        self.z: E = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: C = None
        self.p: E = None
        self.v: A = None
        self.y: F = None
        self.z: A = None
        self.x: F = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: G = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: B = None
        self.z: E = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: C = None
        self.p: E = None
        self.v: A = None
        self.y: F = None
        self.z: A = None
        self.x: F = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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