import math a,b,s=list(map(int,input().split ())) n=0 for i in range(1,s+1): bm=min(max(math.floor(s/i),0),b) n+=int((a-i+1)*(1+bm)*0.5*bm) if i==a: break print(n)