#include <iostream>
#include <algorithm>
using namespace std;
struct stu
{
int id;
double xy;
double st;
}a[100010];
int main()
{
int z = 0;
cin >> z;
for (int j = 0; j < z; j++)
{
cin >> a[j].id >> a[j].xy >> a[j].st;
if ((a[j].xy + a[j].st) > 140 && (a[j].xy * 7 + a[j].st * 3) > 800)
{
cout << "Excellent" << endl;
}
else
cout << "Not excellent" << endl;
}
return 0;
}