#38481: 60分及格要用>=60


422596@st.tc.edu.tw (殤)

學校 : 不指定學校
編號 : 184100
來源 : [140.128.169.42]
最後登入時間 :
2024-01-02 15:30:28

input()
a=sorted(list(map(int,input().split(' '))))
for b in a:    print(b,end=(' '))
for b in sorted(a,reverse=True):    
    if b<60:    
        print(f"\n{b}")
        break  
if b>=60:    print('\nbest case')
for b in a:    
    if b>=60:    
        print(b)
        break 
if b<60:    print('worst case')