h,w,k = gets.split.map(&:to_i)
c = Array.new(w-1,0)
a = Array.new(w-1,0)
s = 0
for i in 0..2**(w-1)-1
    (w-1).times do |j|
        a[j] = i[j]
    end
    f = true
    for j in 0..w-3
        if a[j] == 1 && a[j+1] == 1
            f = false
            break
        end
    end
    if f
        s += 1
        (w-1).times do |j|
            c[j] += a[j]
        end
    end
end
ans = Array.new(h+1).map{Array.new(w,0)}
ans[0][0] = 1
$mod = 10**9+7
for i in 1..h
    for j in 0..w-1
        t = 0
        if j != 0
            t += c[j-1]
            ans[i][j-1] += ans[i-1][j]*c[j-1]
        end
        if j != w-1
            t += c[j]
            ans[i][j+1] += ans[i-1][j]*c[j]
        end
        ans[i][j] += ans[i-1][j]*(s-t)
        ans[i][j] %= $mod
    end
end
puts ans[h][k-1]%$mod