#include <iostream>
using namespace std;
int main() {
int scores[4];
int aCount = 0;
bool hasD = false;
for (int i = 0; i < 4; ++i) {
cin >> scores[i];
if (scores[i] >= 90) {
aCount++;
} else if (scores[i] < 60) {
hasD = true;
}
}
if (hasD) {
cout << "Poor LanYangYang" << endl;
} else if (aCount == 4) {
cout << 5 << endl;
} else {
cout << aCount << endl;
}
return 0;
}
/**************************************************************
	Problem: 1050
	User: linzihang
	Language: C++
	Result: Accepted
	Time:11 ms
	Memory:2072 kb
****************************************************************/