result = 0
for i in range(int(input()), int(input()) + 1):
if i % 2 == 1:
result += i**2
print(result)
result = 0
for i in range(int(input()), int(input()) + 1):
if i % 2 == 1:
result += i**2
print(result)