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

oks=[]
[0,1].repeated_permutation(W-1).each do |f|
    valid_flag=true
    f.each_cons(2) do |i,j|
        valid_flag=false if i==1 && j==1
    end
    add=Array.new(W,0)
    W.times do |w|
        add[w]=1 if w<W-1 && f[w]==1
        add[w]=-1 if w>0 && f[w-1]==1
    end
    oks << add if valid_flag
end

H.times do |h|
    dph=dp[h]
    dph1=dp[h+1]
    oks.each do |add|
        W.times do |w|
            ww=w+add[w]
            dph1[ww]+=dph[w]
            dph1[ww]-=MOD if dph1[ww]>=MOD
        end
    end
end
p dp[H][K-1]