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

a = [0]
(w-1).times do
    a.map! {|e| e.even? ? [(e << 1) + 1, e << 1] : e << 1}.flatten!
end

dp = Array.new(w, 0)
dp[0] = 1

h.times do 
    x = Array.new(w, 0)

    a.each do |e|
        i = 0
        while i < w
            if e[i] == 1
                x[i] += dp[i+1]
                x[i+1] += dp[i]
                i += 1
            else
                x[i] += dp[i]
            end
            i += 1
        end
    end
    dp = x.map{|e| e % M}
end

p dp[k-1]