# def sum(arr):
#     num=0
#     for i in range(len(arr)):
        
#             num+=arr[i]
#     return num
            
# arr=[1,2,3,4,5]
# print(sum(arr)),


# def _sum(arr,n):
     
#     # return sum using sum
#     # inbuilt sum() function
#     return(sum(arr))
 


list=[3,2,3,1,2,4,5,5,6]
list.sort()
print(list[4])