H, W, K = gets.split.map(&:to_i)
MOD = 10 ** 9 + 7
dp = Array.new(H + 1) { Array.new(W, 0) }
dp[0][0] = 1
H.times do |h|
    (0...(1 << (W-1))).each do |bit|
      W.times do |w|
      #check
      flag = false
      (1...W).each do |i|
        if bit[i] == 1 && bit[i - 1] == 1
          flag = true
        end
      end
      next if flag
      # fiber
      if w != W - 1 && bit[w] == 1
        target = w + 1
      elsif w != 0 && bit[w - 1] == 1
        target = w - 1
      else
        target = w
      end
      dp[h + 1][target] = (dp[h + 1][target] + dp[h][w]) % MOD
  end
end
end
puts dp[H][K-1]
