while 1:
    try:
        list = [i for i in map(int,input().split())]
        list.remove(max(list))
        list.remove(min(list))
        average = sum(list) / len(list)
        print(f'{average:.2f}')
    except:
        break