import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while(scan.hasNextInt()) {
Integer score = scan.nextInt();
if(score >= 90 && score <= 100) {
System.out.println("Perfect");
}
}
}
}