#include<iostream>
using namespace std;
struct Stu {
int xh;
double cj1;
double cj2;
double ave=0;
Stu(){}
~Stu(){}
void sr(int xh1, double c1, double c2)
{
xh = xh1;
cj1 = c1;
cj2 = c2;
ave = c1 * 0.7 + c2 * 0.3;
}
void dis()
{
cout << cj1 + cj2 << endl;
}
}stu[100];
void pd(Stu a)
{
if (a.cj1 + a.cj2 > 140 && a.ave >= 80) cout << "Excellent" << endl;
else cout << "Not excellent" << endl;
}
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++)
{
int a;
double b, c;
cin >> a >> b >> c;
stu[i].sr(a, b, c);
}
for (int i = 1; i <= n; i++)
pd(stu[i]);
return 0;
}