A,B,S=map(int,input().split()) a=0 for i in range(min(S,A)): j=min(S//(i+1),B) a+=(A-i)*(B*j-j*(j-1)//2) print(a)