local mod = 1000000007
local mfl = math.floor
local h, w, K = io.read("*n", "*n", "*n")

local linepat = 1
for i = 1, w - 1 do
  linepat = linepat * 2
end
local linetbl = {}
for i = 0, linepat - 1 do
  local lineidx, mul = 0, 1
  local box = {}
  for j = 1, w - 1 do box[j] = false end
  for j = 1, w - 1 do
    if i % 2 == 1 then
      box[j] = true
      lineidx = lineidx + mul
      i = i - 1
    end
    i = i / 2
    mul = mul * 2
  end
  local isok = true
  for j = 1, w - 2 do
    if box[j] and box[j + 1] then isok = false break end
  end
  if isok then table.insert(linetbl, lineidx) end
end
-- for i = 1, #linetbl do print(linetbl[i]) end

local t, u = {}, {}
for i = 1, w do t[i], u[i] = 0, 0 end
t[1] = 1
for i = 1, h do
  for j = 1, w do u[j] = t[j] end
  for j = 2, #linetbl do
    local line_i = linetbl[j]
    local k = 1
    while k <= w - 1 do
      if line_i % 2 == 1 then
        u[k] = (u[k] + t[k + 1]) % mod
        u[k + 1] = (u[k + 1] + t[k]) % mod
        line_i = mfl((line_i - 1) / 4)
        k = k + 2
        if k == w then u[w] = (u[w] + t[w]) % mod end
      else
        u[k] = (u[k] + t[k]) % mod
        if k == w - 1 then u[k + 1] = (u[k + 1] + t[k + 1]) % mod end
        k = k + 1
        line_i = line_i / 2
      end
    end
  end
  for j = 1, w do t[j] = u[j] end
end
print(t[K])
