local mod = 1000000007

local function bmul(x, y) return (x * y) % mod end
local function badd(x, y) return (x + y) % mod end

local h, w, k = io.read("*n", "*n", "*n")
if w == 1 then
  print(1)
else
  local t = {1}
  for i = 2, w do t[i] = 0 end
  local tot = 2^(w - 1)
  local map = {}
  for i = 1, w do
    map[i] = {}
    for j = 1, w do
      map[i][j] = 0
    end
  end
  for it = 0, tot - 1 do
    local valid = true
    local flag = {}
    for i = 1, w - 1 do
      flag[i] = it % 2 == 1
      it = it // 2
    end
    for i = 1, w - 2 do
      if flag[i] and flag[i + 1] then
        valid = false
      end
    end
    if valid then
      for i = 1, w do
        if i == 1 then
          if flag[1] then
            map[1][2] = map[1][2] + 1
          else
            map[1][1] = map[1][1] + 1
          end
        elseif i == w then
          if flag[w - 1] then
            map[w][w - 1] = map[w][w - 1] + 1
          else
            map[w][w] = map[w][w] + 1
          end
        else
          if flag[i] then
            map[i][i + 1] = map[i][i + 1] + 1
          elseif flag[i - 1] then
            map[i][i - 1] = map[i][i - 1] + 1
          else
            map[i][i] = map[i][i] + 1
          end
        end
      end
    end
  end
  for ih = 1, h do
    local nt = {}
    for i = 1, w do nt[i] = 0 end
    for src = 1, w do
      for dst = 1, w do
        nt[dst] = badd(nt[dst], bmul(t[src], map[src][dst]))
      end
    end
    for i = 1, w do t[i] = nt[i] end
  end
  print(t[k])
end
