#include<bits/stdc++.h>
using namespace std;
struct student{
string xm;
int a;
int b;
int c;
int wuhu;
};
int main(){
struct student q;
int n;
cin>>n;
for(int i=0;i<=n;i++){
cin>>q.xm>>q.a>>q.b;
q.c=(q.a*0.7+q.b*0.3);
if(q.a+q.b>140&&q.c>=80)
cout<<"Excellent"<<endl;
else cout<<"Not excellent"<<endl;
}
return 0;
}