for i in range(5):
num=input().split(" ")
nums=list(map(float,num))
print("{:.1f} {:.1f} {:.1f} {:.1f} {:.1f} {:.1f}".format(nums[0],nums[1],nums[2],nums[3],nums[4],sum(nums)))
for i in range(5):
num=input().split(" ")
nums=list(map(float,num))
print("{:.1f} {:.1f} {:.1f} {:.1f} {:.1f} {:.1f}".format(nums[0],nums[1],nums[2],nums[3],nums[4],sum(nums)))