#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c,d,x;
	cin>>a>>b>>c>>d;
	x=0;
	if(a>=60&&b>=60&&c>=60&&d>=60){
		if(a>=90){
			x=x+1;
		}
		if(b>=90){
			x=x+1;
		}
		if(c>=90){
			x=x+1;
		}
		if(d>=90){
			x=x+1;
		}
		if(x == 4){
			x=x+1;
		}
		cout<<x<<endl;
	}else{
		cout<<"Poor LanYangYang"<<endl;
		
	}
	
}

/**************************************************************
	Problem: 1050
	User: zhuangsongyu
	Language: C++
	Result: Accepted
	Time:18 ms
	Memory:2072 kb
****************************************************************/