LearnPy Hub
← Arena
AdvancedRating 1500

Asteroid Collision

Asteroids move right (positive) or left (negative) with size |x|. When two meet, the smaller explodes (both if equal). Print the survivors, or EMPTY.

Input

One line of non-zero integers.

Output

One line.

Sample 1

Input
5 10 -5
Output
5 10

Sample 2

Input
8 -8
Output
EMPTY
solution.py
Output appears here
Asteroid Collision · Python Arena problem · LearnPy Hub