class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: H = None
        self.p: F = None
        self.s: E = None
        self.z: F = None
        self.u: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: A = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: I = None
        self.y: J = None
        self.s: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: D = None
        self.w: G = None
        self.z: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: A = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.q: I = None
        self.y: J = None
        self.s: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: D = None
        self.w: G = None
        self.z: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: E = None
        self.txt = txt

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

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