h,w,k = gets.split.map(&:to_i)
mod = 10**9+7

dp = (h+1).times.map{Array.new(w,0)}
dp[0][0] = 1

h.times{|i|
  (2**(w-1)).times{|k|
    s = (2**w+k).to_s(2)[1..-1].chars.map{|c|c==?1}
    next if (s.size-1).times.map{|i| s[i] && s[i+1]}.any?
    w.times{|j|
      dp[i+1][j+1] += dp[i][j] if j<w-1 && s[j+1]
      dp[i+1][j-1] += dp[i][j] if 0<j && s[j]
      dp[i+1][j] += dp[i][j] if !s[j+1] && !s[j]
    }
  }
  w.times{|j|
    dp[i+1][j] %= mod
  }
}

p dp[h][k-1]
