import algorithm,sequtils,strutils var n = parseInt readLine stdin var a = stdin.readLine.split.map parseInt a.sort cmp if n mod 2 == 0: echo (a[n div 2] + a[n div 2 - 1]) / 2 else: echo a[n div 2]