x = float(input())
y = float(input())
z = float(input())
print(x**2, y**2, z**2)
print(x+y+z)
print(x-y-z)
print(x*y*z)
x = float(input())
y = float(input())
z = float(input())
print(x**2, y**2, z**2)
print(x+y+z)
print(x-y-z)
print(x*y*z)