#!/usr/bin/python3 N=int(input()) zahrada=[int(i) for i in input().split()] zahrada.sort() print(zahrada[N//2])