while True: try:
        a=int(input()) if a>=90 and a<=100: print('Perfect') else: print() except: break;