h,w,k = gets.chomp.split.map(&:to_i)
g = []
for i in 0...w
  g[i] = []
  for j in 0...w
    g[i][j] = 0
  end
end
for i in 0...w
  for j in 0...w
    next if j < i-1
    next if j > i+1
    for msk in 0...(1<<(w-1))
      next if (msk & (msk>>1)) > 0
      next if (j==i) && ((msk&(1<<i))>0 || (i>0 && (msk&(1<<(i-1)))>0))
      next if (j==i+1) && (msk&(1<<i))==0
      next if (j==i-1) && (msk&(1<<(i-1)))==0
      g[i][j] += 1
    end
  end
end
dp = []
for i in 0..h
  dp[i] = []
  for j in 0...w
    dp[i][j] = 0
  end
end
MOD = 1000000007
dp[0][0] = 1
for i in 0...h
  for j in 0...w
    for to in 0...w
      dp[i+1][to] += dp[i][j] * g[j][to] % MOD
      dp[i+1][to] %= MOD
    end
  end
end
puts dp[h][k-1]
