APCS 10503 成績指標

#10
#0 11 22 33 55 66 77 99 88 44
# output:最高不及格,沒有不及格:best case<endl>最低及格,沒有及格:worst case
n=int(input())
scores=list(map(int,input().split()))
best=-1
worst=101
scores.sort()
print(*scores)
for score in scores:
    if best<score<60:
        best=score
    elif 60<=score<worst:
        worst=score
if(best!=-1):
    print(best)
else:
    print("best case")
if(worst!=101):
    print(worst)
else:
    print("worst case")