def main(): n = input() list = input().split(" ") list = [int(i) for i in list] list.sort() if len(list) % 2 == 0: median = (list[int(len(list) / 2)] + list[int(len(list) / 2 - 1)]) / 2 else: median = list[int(len(list) / 2)] print(median) if __name__ == "__main__": main()