eolymp
bolt
Try our new interface for solving problems

170

170

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