
Gerrit Dou (1613–1675), Hermit. Oil on panel, 1660.
For your upcoming documentary about The Most Isolated Person in the World, you have narrowed the search down to three candidates, all of them hermits. For each of them, you have found out how many people they have met in the past year. The fewer, the more isolated: the most isolated person in the world is the hermit who has met strictly fewer people than any of the others.
There is a catch. A documentary needs a film crew, and the moment your crew walks up to a hermit's door, that hermit has met all of you as well. Choose the wrong hermit or bring too many people, and by the time the cameras are rolling, your title is no longer true.
So before you book any flights, work out whether the film can be made at all: is there a hermit who is still the most isolated person in the world after your visit?
The input consists of:
If you can make the film, output how many people the hermit you visit will have met once your crew has arrived. Otherwise, output "impossible".
2415
3
80108
impossible
| Name |
|---|


