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