Problem C
Clock Pictures
You have two pictures of an unusual kind of clock. The clock
has
You’d like to know if both images might have been taken at exactly the same time of the day, possibly with the camera rotated at different angles.
Task
Given the description of the two images, determine whether it is possible that these two pictures could be showing the same clock displaying the same time.
Input
The first line contains a single integer
Each of the next two lines contains
Output
Output one line containing one word: possible if the clocks could be showing the same time, impossible otherwise.
![\includegraphics[width=0.45\textwidth ]{sample2}](/problems/clockpictures/file/statement/en/img-0001.png)
Sample Input 1 | Sample Output 1 |
---|---|
6 1 2 3 4 5 6 7 6 5 4 3 1 |
impossible |
Sample Input 2 | Sample Output 2 |
---|---|
2 0 270000 180000 270000 |
possible |
Sample Input 3 | Sample Output 3 |
---|---|
7 140 130 110 120 125 100 105 235 205 215 220 225 200 240 |
impossible |