Problem H
Eating Out
Alice, Bob, and Clara are eating at a new restaurant today.
They’re having trouble deciding what to order, so Alice
proposes that they each pick some items from the menu, and then
they will order the items that everyone picked. The menu has
Input
The input contains a single line with four integers,
Output
If it’s possible for Alice, Bob, and Clara to pick some item such that no item on the menu is picked by everyone, print “possible” (without quotes). Otherwise, print “impossible”.
Sample Input 1 | Sample Output 1 |
---|---|
6 2 2 2 |
possible |
Sample Input 2 | Sample Output 2 |
---|---|
1 1 1 1 |
impossible |