Example input:
10 5
3
2 2
SAME
4 3
Explanation:
The building has a width of 10 windows and a height of 5 windows. You can make 3 jumps before the bombs go off. Your starting position is at window (2,2). The device code indicates that the next window you should jump to is in the same temperature zone as your current location. The next window is located at (4,3).
Example output:
JUMP
Explanation:
Based on the device code, you need to jump to the next window. Therefore, the program outputs "JUMP" to the standard output.