class Solution(object):
def average(self, salary):
"""
:type salary: List[int]
:rtype: float
"""
salary.sort()
del salary[len(salary)-1]
del salary[0]
n = len(salary)
n=float(n)
sum1=float(sum(salary))
return sum1/n