Problem A
Saturn Bees

The Saturn bee (Apis saturnii) is quite an
interesting species. To begin with, they build their hives in
the shape of a ring. More precisely, a beehive is a hexagonal
grid, which we represent as a graph where walls are edges and
wall joins are vertices. If we flatten each hexagon a bit so
that it becomes a
To make an
![\includegraphics[width=0.75\textwidth ]{hex.pdf}](/problems/saturnbees/file/statement/en/img-0002.png)
Another outstanding fact about Saturn bees is how they guard
their hive. Each soldier bee sits on top of a vertex and its
task is to control that vertex and its up to
Your task is to determine whether a beehive is a suitable home for a swarm.
Input
The first line of input contains two integers,
Output
Output “possible” if
Sample Input 1 | Sample Output 1 |
---|---|
4 6 |
impossible |
Sample Input 2 | Sample Output 2 |
---|---|
6 4 |
possible |