#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
int x=0,y;
if(a>=90){
x++;
}
if(b>=90){
x++;
}
if(c>=90){
x++;
}
if(d>=90){
x++;
}
if(x<4){
y=x;
}
else if(x=4){
y=5;
}
if(a<60||b<60||c<60||d<60){
cout<<"Poor LanYangYang"<<endl;
}
else {
cout<<y<<endl;
}
return 0;
}
/**************************************************************
Problem: 1050
User: xiaojingxuan
Language: C++
Result: Accepted
Time:17 ms
Memory:2072 kb
****************************************************************/