t;main(s){for(;~scanf("%d\n",&s);puts(t?"impossible":"possible"))for(t=0;s=getchar()-10;t>0&&t++)t+=1-(s&1)-(s<62);}