import sequtils,strutils,algorithm var N = stdin.readline.parseInt A = stdin.readline.split.map(parseInt) A.sort(cmp) echo( (A[N div 2] + A[(N - 1) div 2]) / 2)