H, W, K = gets.chomp.split(' ').map(&:to_i)
MOD = 1_000_000_007
dp = Array.new(H + 1) { Array.new(W, 0) }
dp[0][0] = 1
(0...H).each do |i|
  (0...W).each do |j|
    (0...(1 << (W - 1))).each do |k|
      ok = (0..(W - 1 - 1)).all? do |bi|
        k[bi] == 0 || k[bi + 1] == 0
      end
      next unless ok
      if j >= 1 && k[j - 1] == 1
        dp[i + 1][j - 1] += dp[i][j]
      elsif j < W - 1 && k[j] == 1
        dp[i + 1][j + 1] += dp[i][j]
      else
        dp[i + 1][j] += dp[i][j]
      end
    end
  end
end
puts dp[H][K - 1] % MOD
