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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: A = None
        self.o: C = None
        self.r: D = None
        self.w: H = None
        self.p: D = None
        self.t: A = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: A = None
        self.o: C = None
        self.r: D = None
        self.w: H = None
        self.p: D = None
        self.t: A = None
        self.z: D = None
        self.txt = txt

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

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

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

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