class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: D = None
        self.y: G = None
        self.u: E = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: A = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: B = None
        self.y: F = None
        self.t: B = None
        self.w: F = None
        self.u: A = None
        self.txt = txt

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

k.s = j
k.v = n
k.q = n
k.y = a
k.u = i
j.t = k
j.v = n
e.y = f
e.z = f
e.u = k
n.z = i
n.x = i
n.r = e
n.u = e
n.s = a
n.y = m
n.p = j
n.o = k
i.r = m
i.y = n
f.r = n
f.u = e
f.q = j
f.o = i
a.u = i
a.w = k
a.q = n
m.x = n
m.s = j
m.t = j
m.y = f
m.w = f
m.u = k
assert j.t.v.o.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: D = None
        self.y: G = None
        self.u: E = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: A = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: B = None
        self.y: F = None
        self.t: B = None
        self.w: F = None
        self.u: A = None
        self.txt = txt

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

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