Mod = 1000000007
H,W,K = gets.split.map(&:to_i)

ls = Array.new(W+2, 0)
ls[0] = ls[1] = 1
(0...W).each{ |i| ls[i+2] = ls[i+1] + ls[i] }
#p ls

dp = Array.new(W, 0)
dp[0] = 1

H.times {
  ndp = Array.new(W, 0)
  (0...W).each{ |i|
    s = [W-1 - (i+1), 0].max
    t = [i-1, 0].max
    #p ["", i,s,t]
    ndp[i] += dp[i] * ls[s+1] * ls[t+1]
  }
  #p ndp
  (1...W).each{ |i|
    s = [W-1 - (i+1) , 0].max
    t = [i-2, 0].max
    ndp[i-1] += dp[i] * ls[s+1] * ls[t+1]
  }
  #p ndp
  (0...W-1).each{ |i|
    s = [W-1 - (i+2) , 0].max
    t = [i-1, 0].max
    ndp[i+1] += dp[i] * ls[s+1] * ls[t+1]
  }
  #p ndp
  (0...W).each{ |i| dp[i] = ndp[i] % Mod }
}
#p dp
p dp[K-1]

