def gene_swap_perm(n)
  return [[0]] if n==1
  return [[0,1],[1,0]] if n==2
  return [[0,1,2],[1,0,2],[0,2,1]] if n==3
  ret=gene_swap_perm(n-1)
  ret.map!{|perm|perm<<(n-1)}
  gsp=gene_swap_perm(n-2)
  gsp.each{|perm|ret<<(perm<<(n-1)<<(n-2))}
  ret
end

M=1_000_000_007
h,w,k=gets.split.map(&:to_i)
gsp=gene_swap_perm(w)
dp=Array.new(w,0)
dp[0]=1
h.times{
  _dp=Array.new(w,0)
  gsp.each{|perm|
    perm.each_with_index{|i,j|
      _dp[i]=(_dp[i]+dp[j])%M
    }
  }
  dp=_dp
}

puts dp[k-1]