#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] < 60) {
            hasD = true;
        } else if (scores[i] >= 90) {
            aCount++;
        }
    }

    // 根据政策输出结果
    if (hasD) {
        cout << "Poor LanYangYang" << endl;
    } else if (aCount == 4) {
        cout << 5 << endl;
    } else {
        cout << aCount << endl;
    }

    return 0;
}    
/**************************************************************
	Problem: 1050
	User: linmiaoling
	Language: C++
	Result: Accepted
	Time:12 ms
	Memory:2072 kb
****************************************************************/