#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 {
        cout << (aCount == 4 ? 5 : aCount) << endl;
    }

    return 0;
}

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