Input is a sequence of lines, each line contains two words, separated by spaces, giving the colors of the endpoints of one stick. A word is a sequence of lowercase letters no longer than 10 characters. There is no more than 250000 sticks.
If the sticks can be aligned in the desired way, output a single line saying Possible, otherwise output Impossible.
blue red red violet cyan blue blue magenta magenta cyan
Possible