#28625: python 沒用副程式版


jeter.nice@gmail.com (唯一)

學校 : 德明財經科技大學
編號 : 112857
來源 : [60.251.47.215]
最後登入時間 :
2023-04-16 13:02:46

input()
score = [int(i) for i in input().split()]
score.sort()
print(" ".join([str(i) for i in score]))
high = [i for i in score if i <60]
low = [i for i in score if i >=60]
print('best case' if len(high) == 0 else max(high))
print('worst case' if len(low) == 0 else min(low))