#include<bits/stdc++.h>
using namespace std;
int a,b,c,d,e,f,n;
int main(){
cin>>a>>b>>c>>d>>e>>f;
n=(a*d+c*e+c*f)/(d+e+f)*1.0;
if(a+b+c>=180){
cout<<"PASS"<<endl;
}else{
cout<<"FAIL"<<endl;
}
if(n>=60){
cout<<"PASS"<<endl;
}else{
cout<<"FAIL"<<endl;
}
return 0;
}
样例没过得了90分