h, w, k = gets.split.map(&:to_i)
base = 1_000_000_007

fib = Array.new(w+1, 0)
fib[1] = 1
(2..w).each{|i| fib[i] = fib[i-1] + fib[i-2]}

f = Array.new(h+1){Array.new(w+2, 0)}
f[0][k] = 1

(1..h).each{|y|
    (1..w).each{|x|
        s = f[y-1][x] * fib[x] * fib[w+1-x]
        l = f[y-1][x-1] * fib[x-1] * fib[w+1-x]
        r = f[y-1][x+1] * fib[x] * fib[w-x]
        f[y][x] = (s + l + r) % base
    }
}
p f[h][1]