H, W, K = gets.split.map(&:to_i)
MOD = 1_000_000_007

f = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 0] # f(w) = number of Amida in a row
dp = Array.new(H + 1){Array.new(W + 2, 0)} # dp[h][w] : 1 at w in row h
dp[0][1] = 1
[*1 .. H].product([*1 .. W]).each do |h, w|
  dp[h][w] = (f[w - 2]*f[W - w]*dp[h - 1][w - 1] + f[w - 1]*f[W - w]*dp[h - 1][w] + f[w - 1]*f[W - w - 1]*dp[h - 1][w + 1]) % MOD
end
puts dp[H][K]