h,w,k=gets.chomp.split.map(&:to_i)
dp=Array.new(h+1).map{Array.new(w)}

MOD = 1000000007

dp[0][0] = 1
1.upto(w-1) do |i|
    dp[0][i] = 0
end

1.upto(h) do |i|
    0.upto(w-1) do |j|
        dp[i][j] = 0
        if(j > 0)
            n = [0,j-2].max
            n += [0,w-2-j].max
            dp[i][j] += dp[i-1][j-1] * 2**n
        end

        if(j == 0 || j == w-1)
            n = [0,w-1-1].max
        else
            n = [0,w-1-2].max
        end
        dp[i][j] += dp[i-1][j] * 2**n

        if(j < w-1)
            n = [0,j-1].max
            n += [0,w-j-3].max
            dp[i][j] += dp[i-1][j+1] * 2**n
        end
        dp[i][j] = dp[i][j] % MOD
    end
end


puts dp[h][k-1]


