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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: J = None
        self.w: F = None
        self.o: I = None
        self.p: H = None
        self.x: J = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: H = None
        self.z: G = None
        self.w: G = None
        self.o: I = None
        self.u: I = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: I = None
        self.q: B = None
        self.o: C = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: H = None
        self.v: B = None
        self.x: A = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: I = None
        self.z: I = None
        self.x: H = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: H = None
        self.txt = txt

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

e = A("e")
d = B("d")
i = C("i")
l = D("l")
b = E("b")
m = F("m")
h = G("h")
k = H("k")
c = I("c")
n = J("n")

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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: J = None
        self.w: F = None
        self.o: I = None
        self.p: H = None
        self.x: J = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: H = None
        self.z: G = None
        self.w: G = None
        self.o: I = None
        self.u: I = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: I = None
        self.q: B = None
        self.o: C = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: H = None
        self.v: B = None
        self.x: A = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: I = None
        self.z: I = None
        self.x: H = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: H = None
        self.txt = txt

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

e = A("e")
d = B("d")
i = C("i")
l = D("l")
b = E("b")
m = F("m")
h = G("h")
k = H("k")
c = I("c")
n = J("n")

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