eolymp
bolt
Try our new interface for solving problems

169

169

Time limit 1 second
Memory limit 64 MiB
Input example #1
7
1 5 2 0 2 5 9
Output example #1
1 4 -3 -2 2 3 4