Sum of neighbors
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
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.
Examples
Input #1
Answer #1
Submissions 5K
Acceptance rate 50%