H,W,K=gets.split.map &:to_i
dp=(0..H).map{[0]*(W+2)}
dp[0][1]=1;
(1..H).each do |i|
    (0...2**(W-1)).select{|k| (k & k/2)==0}.each do |k|
        m=k*2
        (1..W).each do |j|
            dp[i][j]+=dp[i-1][m[j]>0 ? j+1 : m[j-1]>0 ? j-1 : j]
            dp[i][j]%=10**9+7
        end
    end
end
puts dp[H][K]