rown = int(input())
result = []
for count in range(0,rown):
row = input().split(' ')
studentScore = int(row[1])
moralScore = int(row[2])
twoAdd = studentScore + moralScore
twoScore = studentScore * 0.7 + moralScore * 0.3
if twoAdd > 140 and not (twoScore < 80):
result.append('Excellent')
else:
result.append('Not excellent')
for r in result:
print(r)