'''
输入语文、数学、英语成绩。三门课都大于60分且有一门100分,或两门90分优秀;
都大于60分且有一门90分以上,或两门80分良好;三门60分以上为合格;
有一门60分以下为不合格。
'''
chinese_score = int(input('语文成绩:'))
maths_score = int(input('数学成绩:'))
english_score = int(input('英语成绩:'))
lis = [chinese_score,maths_score,english_score]
print(lis)
i = 0
j = 0
k = 0
m = 0
n = 0
for score in lis:
if score < 60:
i += 1
if score == 100:
j += 1
if score >= 90 and score <100:
k += 1
if score >= 80 and score <90:
m +=1
if score >= 60 and score <80:
n +=1
print('i=',i,'j=',j,'k=',k,'m=',m,'n=',n)
if i> 0:
print('不合格')
elif i== 0 and j > 0:
print('优秀')
elif i== 0 and k >= 2:
print('优秀')
elif i== 0 and k == 1:
print('良好')
elif i== 0 and m >= 2:
print('良好')
else:
print('合格')