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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: E = None
        self.w: E = None
        self.o: B = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: D = None
        self.u: E = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: A = None
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: A = None
        self.q: C = None
        self.v: G = None
        self.r: D = None
        self.txt = txt

g = A("g")
i = B("i")
m = C("m")
h = D("h")
e = E("e")
a = F("a")
k = G("k")
b = H("b")
f = D("f")

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: E = None
        self.w: E = None
        self.o: B = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: D = None
        self.u: E = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.u: A = None
        self.x: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: A = None
        self.q: C = None
        self.v: G = None
        self.r: D = None
        self.txt = txt

g = A("g")
i = B("i")
m = C("m")
h = D("h")
e = E("e")
a = F("a")
k = G("k")
b = H("b")
f = D("f")

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