MOD = 10**9+7
h, w, k = gets.split.map &:to_i

if w == 1
  p 1
  exit
end

dp = [[0] * w]
dp[0][0] = 1
h.times do |i|
  dp[i+1] = []
  dp[i+1][0] = ((dp[i][0] << [w-2, 0].max) + (dp[i][1] << [w-3, 0].max) ) % MOD
  (1..w-2).each do |j|
    dp[i+1][j] = ((dp[i][j] << [j-1, 0].max + [w-j-2, 0].max) + (dp[i][j-1] << [j-2, 0].max + [w-j-2, 0].max) + (dp[i][j+1] << [j-1, 0].max + [w-j-3, 0].max)) % MOD
  end
  dp[i+1][w-1] = ((dp[i][w-1] << [w-2, 0].max) + (dp[i][w-2] << [w-3, 0].max)) % MOD
end
p dp[h][k-1] % MOD