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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: H = None
        self.s: F = None
        self.z: I = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: A = None
        self.p: I = None
        self.w: D = None
        self.x: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: I = None
        self.o: G = None
        self.v: A = None
        self.p: E = None
        self.u: J = None
        self.x: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: G = None
        self.u: A = None
        self.w: H = None
        self.o: D = None
        self.r: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: D = None
        self.s: G = None
        self.w: B = None
        self.t: D = None
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: H = None
        self.s: F = None
        self.z: I = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: A = None
        self.p: I = None
        self.w: D = None
        self.x: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.t: I = None
        self.o: G = None
        self.v: A = None
        self.p: E = None
        self.u: J = None
        self.x: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: G = None
        self.u: A = None
        self.w: H = None
        self.o: D = None
        self.r: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: D = None
        self.s: G = None
        self.w: B = None
        self.t: D = None
        self.x: E = None
        self.txt = txt

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

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