import numpy a = numpy.arrey([map(int, input().split( ))]) print('{:.1f}'.format(numpy.median(a)))