# frozen_string_literal: true

h, w, k = gets.split.map(&:to_i)

dp = Array.new(h + 1).map { Array.new(w + 1, 0) }
fib = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 0, 0, 0]
dp[0][0] = 1

0.upto(h - 1) do |i|
  0.upto(w - 1) do |j|
    dp[i + 1][j] = dp[i][j] * [fib[j - 1], 1].max * [fib[w - j - 2], 1].max +
      dp[i][j - 1] * ([fib[j - 2], 1].max * [fib[w - j - 2], 1].max) +
      dp[i][j + 1] * [fib[j - 1], 1].max * [fib[w - j - 3], 1].max
  end
end

puts dp[h][k - 1] % 1_000_000_007
