## main

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

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

for i in (0...n)
  pcounts = counts
  counts = (r + 1).times.map{0}
  max_r0 = r - m * (n - 1 - i)

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

puts counts[r]