A,B,S = map(int,input().split())

ans = 0
for i in range(1,min(B,S) + 1):
    j = S // i
    u = min(j,A)
    ans += (B - j + 1) * (A * u - (u - 1) * u // 2)
print(ans)