eolymp
bolt
Try our new interface for solving problems
Problems

Sum of neighbors

Sum of neighbors

Given a sequence of five integers. Replace these numbers, except the first and last, with the sum of their neighbors. Print the resulting numbers.

Input

Five integers.

Output

Print five numbers after the described replacement.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1 2 3 4 5
Output example #1
1 4 6 8 5