#include <bits/stdc++.h>
using namespace std;
struct a {
int num, s, x;
} a[100001];
int z(int f, int s) {
int d = f * 7 + s * 3;
if (d > 800) {
return 1;
} else {
return 0;
}
}
int x[10001];
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i].num >> a[i].s >> a[i].x ;
}
for (int i = 1; i <= n; i++) {
x[i] = z(a[i].s, a[i].x );
if (x[i] == 1) {
cout << "Excellent" << endl;
} else {
cout << "Not excellent" << endl;
}
}
return 0;
}