"""
P5742 【深基7.例11】评等级--python3实现
https://www.luogu.com.cn/problem/P5742
"""
n=int( input() )
while n>0:
a,b,c=map( int,input().split() )
if b+c>140 and b*0.7+c*0.3>80:
print("Excellent")
else:
print("Not excellent")
n-=1
P1029 [NOIP2001 普及组] 最大公约数和最小公倍数问题(2022.02.02) --- python3实现
https://blog.csdn.net/dllglvzhenfeng/article/details/122768863
P1035 [NOIP2002 普及组] 级数求和(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122765020
P1046 [NOIP2005 普及组] 陶陶摘苹果(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122764008
P1047 [NOIP2005 普及组] 校门外的树(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122772231
P1048 [NOIP2005 普及组] 采药( 张丁宸 初二 )
https://blog.csdn.net/zdc__/article/details/122709521
P1055 [NOIP2008 普及组] ISBN 号码(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122763603
P1085 [NOIP2004 普及组] 不高兴的津津(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122763258