class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: H = None
        self.w: G = None
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: E = None
        self.s: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: F = None
        self.p: G = None
        self.w: F = None
        self.r: H = None
        self.q: G = None
        self.x: H = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: A = None
        self.u: B = None
        self.s: H = None
        self.p: H = None
        self.y: E = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: F = None
        self.x: D = None
        self.u: F = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: E = None
        self.s: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: F = None
        self.p: G = None
        self.w: F = None
        self.r: H = None
        self.q: G = None
        self.x: H = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: A = None
        self.u: B = None
        self.s: H = None
        self.p: H = None
        self.y: E = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: F = None
        self.x: D = None
        self.u: F = None
        self.z: D = None
        self.txt = txt

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

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