int main()
{
    int grade = 0;
    while ((scanf ("%d",&grade)) != EOF );
    if (grade >= 90 && grade <= 100)
    {
        printf ("Perfect");
    }
    return 0;
}