import statistics N = int(input()) A_list = list(map(int, input().split())) print("{0:.1f}".format(statistics.median(A_list)))