# main

n, m, r = gets.strip.split(' ').map{|s| s.to_i}

zeros = (r + 1).times.map{0}
counts = zeros.clone
counts[0] = 1

for i in (0...n)
  pcounts = counts
  counts = zeros.clone
  max_r0 = r - m * (n - 1 - i)

  psum = 0
  for r0 in (m..max_r0)
    counts[r0] = psum + pcounts[r0 - m]
    psum = counts[r0]
  end
end

puts counts[r]