#include<bits/stdc++.h>
using namespace std;
double yxdy(int x,int y)
{
if(x*7+y*3 > 800 && x+y > 140)
return true;
else
return false;
}
int a[1001],b[1001],c[1001],n;
int main()
{
cin>>n;
for(int i=0; i<n; i++)
{
cin>>a[i]>>b[i]>>c[i];
if(yxdy(b[i],c[i]))
cout<<"Excellent"<<endl;
else
cout<<"No excellent"<<endl;
}
return 0;
}