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