a, b, s = map(int, input().split()) ans = 0 for x in range(1, s+1): for y in range(1, s//x+1): ans += max(0, a-x+1) * max(0, b-y+1) print(ans)