A, B, S = gets.split.map(&:to_i) ans = 0 1.upto(A) do |a| b = 1 while a * b <= S && b <= B ans += (A - a + 1) * (B - b + 1) b += 1 end end puts ans