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