H, W, K = gets.split.map(&:to_i)

num = Array.new(W){Array.new(W, 0)}

(2**(W-1)).times do |bits|
    if (W-2).times.all?{|i| bits[i] == 0 || bits[i+1] == 0}
        arr = W.times.to_a
        (W-1).times do |i|
            if bits[i] == 1
                arr[i], arr[i+1] = arr[i+1], arr[i]
            end
        end
        W.times do |i|
            num[i][arr[i]] += 1
        end
    end
end

dp = Array.new(H+1){Array.new(W, 0)}
dp[0][0] = 1
MOD = 10**9+7

H.times do |i|
    W.times do |j|
        W.times do |k|
            dp[i+1][k] = (dp[i+1][k] + dp[i][j] * num[j][k]) % MOD
        end
    end
end

puts dp[H][K-1]