a, b, c = int(input()), int(input()), int(input())
if a<0 and b<0 and c<0:
a **= 2
b **= 2
c **= 2
print(a, b, c)
elif a == 0 and b == 0 and c == 0:
a, b, c = 5, 20, 15
else:
print(a+b+c)
a, b, c = int(input()), int(input()), int(input())
if a<0 and b<0 and c<0:
a **= 2
b **= 2
c **= 2
print(a, b, c)
elif a == 0 and b == 0 and c == 0:
a, b, c = 5, 20, 15
print(a, b, c)
else:
print(a+b+c)