include<stdio.h>
int main(){
int a;
while(~scanf("%d",&a)){
if(a>=90&&a<=100)
printf("Perfect");
}
return 0;
}
int main(){
int a;
while(~scanf("%d",&a)){
if(a>=90&&a<=100)
printf("Perfect");
}
return 0;
}