from math import* N=int(input("N?")) M=N//2 if 2*M==N: print("PAIR") else: print("IMPAIR")