Problem I
Goomba Stacks

While exploring a cave, Mario finds that the entrance behind
has been closed, leaving him no escape except going forward.
Luckily, he has Cappy to help him escape. In front of Mario are
a series of
Input
The first line of input is a integer
Output
If Mario can escape, print “possible”. If Mario cannot escape, print “impossible”.
Sample Input 1 | Sample Output 1 |
---|---|
3 4 3 2 5 1 7 |
possible |
Sample Input 2 | Sample Output 2 |
---|---|
3 4 3 2 5 1 8 |
impossible |