#include <bits/stdc++.h>
using namespace std;
struct node
{
unsigned int id;
unsigned int a, b;
int score() const
{
return a + b;
}
int final_score() const
{
return a * 7 + b * 3;
}
};
static void judge(node& n)
{
if (n.score() > 140 && n.final_score() >= 800) cout << "Excellent" << endl;
else cout << "Not excellent" << endl;
}
int main()
{
int N;
node nd = {0,0,0};
cin >> N;
for (int i = 0; i < N; i++)
{
cin >> nd.id >> nd.a >> nd.b;
judge(nd);
}
return 0;
}
感觉很多答案都没有严格按照题目要求,所以写下这篇