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