class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: G = None
        self.u: C = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: D = None
        self.x: D = None
        self.s: B = None
        self.t: D = None
        self.q: C = None
        self.o: B = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: B = None
        self.o: G = None
        self.q: G = None
        self.y: G = None
        self.v: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: D = None
        self.x: D = None
        self.s: B = None
        self.t: D = None
        self.q: C = None
        self.o: B = None
        self.p: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: B = None
        self.o: G = None
        self.q: G = None
        self.y: G = None
        self.v: D = None
        self.txt = txt

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

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

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