H, W, K = gets.split(' ').map(&:to_i)
MOD = 10 ** 9 + 7

dp = Array.new(H + 1){Array.new(W + 2, 0)}
dp[0][1] = 1
lines = []

[0, 1].repeated_permutation(W - 1) do |line|
  valid = true
  0.upto(W - 2) do |i|
    valid = false if line[i] == 1 && line[i + 1] == 1
  end
  lines.push([0] + line + [0]) if valid
end

1.upto(H) do |h|
  lines.each do |line|
    1.upto(W) do |j|
      if line[j - 1] == 1
        dp[h][j] += dp[h - 1][j - 1]
      elsif line[j] == 1
        dp[h][j] += dp[h - 1][j + 1]
      else
        dp[h][j] += dp[h - 1][j]
      end
      dp[h][j] %= MOD
    end
  end
end

puts dp[H][K]