N = input() f = input() s_f = f.split() list_f = [int(v) for v in s_f] list_s = list_f.sorted() if N % 2 == 1: a = (N + 1) // 2 print(list_s[a]) else: a = N // 2 b = list_s[a] c = list_s[a+1] d = (b + c) / 2 print(d)