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

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: F = None
        self.o: C = None
        self.t: D = None
        self.x: F = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: E = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: D = None
        self.r: F = None
        self.u: F = None
        self.v: F = None
        self.x: F = None
        self.txt = txt

n = A("n")
f = B("f")
l = C("l")
i = D("i")
b = E("b")
m = F("m")
h = G("h")
k = H("k")

n.v = b
n.z = i
n.u = k
n.o = k
f.z = k
f.q = k
f.w = n
f.v = n
f.x = m
f.o = i
f.t = h
l.u = k
i.v = k
b.q = h
b.p = m
b.x = m
b.o = l
b.z = l
b.t = i
m.q = h
m.p = k
m.x = k
m.w = i
m.s = i
m.t = f
m.y = l
h.p = l
h.z = b
h.v = i
k.o = b
k.p = i
k.r = m
k.u = m
k.v = m
k.x = m
assert h.v.v.o.q.z.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: D = None
        self.u: H = None
        self.o: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: F = None
        self.o: C = None
        self.t: D = None
        self.x: F = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: E = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: D = None
        self.r: F = None
        self.u: F = None
        self.v: F = None
        self.x: F = None
        self.txt = txt

n = A("n")
f = B("f")
l = C("l")
i = D("i")
b = E("b")
m = F("m")
h = G("h")
k = H("k")

n.v = b
n.z = i
n.u = k
n.o = k
f.z = k
f.q = k
f.w = n
f.v = n
f.x = m
f.o = i
f.t = h
l.u = k
i.v = k
b.q = h
b.p = m
b.x = m
b.o = l
b.z = l
b.t = i
m.q = h
m.p = k
m.x = k
m.w = i
m.s = i
m.t = f
m.y = l
h.p = l
h.z = b
h.v = i
k.o = b
k.p = i
k.r = m
k.u = m
k.v = m
k.x = m
assert h.v.v.o.q.z.txt == "b"