point_list = sorted(list(map(int, input().split(' '))))[1:-1] print('%.2f' % (sum(point_list)/len(point_list)))