eolymp
bolt
Try our new interface for solving problems

158

158

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