#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int d, e, f;
int main() {
cin >> a >> b >> c >> d >> e >> f;
if(a < 60 or b < 60 or c < 60) cout << "PASS" << endl;
double g = (a * d + b * e + c * f) / (d + e + f);
if(g >= 60) cout << "PASS" << endl;
else if(g < 60) cout << "FAIL" << endl;
return 0;
}
测评记录