class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: C = None
        self.q: C = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: I = None
        self.t: H = None
        self.s: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: E = None
        self.u: H = None
        self.s: H = None
        self.v: B = None
        self.y: I = None
        self.q: E = None
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: J = None
        self.o: A = None
        self.r: D = None
        self.p: B = None
        self.y: A = None
        self.q: J = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: F = None
        self.z: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: E = None
        self.v: E = None
        self.w: A = None
        self.x: C = None
        self.p: C = None
        self.o: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: I = None
        self.t: H = None
        self.s: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: E = None
        self.u: H = None
        self.s: H = None
        self.v: B = None
        self.y: I = None
        self.q: E = None
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: J = None
        self.o: A = None
        self.r: D = None
        self.p: B = None
        self.y: A = None
        self.q: J = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: F = None
        self.z: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: E = None
        self.v: E = None
        self.w: A = None
        self.x: C = None
        self.p: C = None
        self.o: H = None
        self.txt = txt

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

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

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