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

CUT = 1_000_000_007

list = Array.new(h + 1) { Array.new(w + 2) { 0 } }

hash = {
  0 => 1,
  1 => 1,
  2 => 2,
  3 => 3,
  4 => 5,
  5 => 8,
  6 => 13,
  7 => 21,
  8 => 34
}

list[0][1] = 1
1.upto(h).each do |i|
  1.upto(w).each do |j|
    list[i][j] += (list[i - 1][j - 1] * hash.fetch(j - 2, 1) * hash[w - j]) % CUT
    list[i][j] += (list[i - 1][j] * hash[j - 1] * hash[w - j]) % CUT
    list[i][j] += (list[i - 1][j + 1] * hash[j - 1] * hash.fetch(w - (j + 1), 1)) % CUT
  end
end

puts list[h][k] % CUT
