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