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.
Input example #1
1 2 3 4 5
Output example #1
1 4 6 8 5