N = int( input() ) A = sorted( list( map( int, input().split() ) ) ) if N & 1: print( A[ N >> 1 ] ) else: print( ( A[ N // 2 - 1 ] + A[ N // 2 ] ) / 2 )