CF710B Optimal Point on a Line

Description

You are given $ n $ points on a line with their coordinates $ x_{i} $ . Find the point $ x $ so the sum of distances to the given points is minimal.

Input Format

The first line contains integer $ n $ ( $ 1

Output Format

Print the only integer $ x $ — the position of the optimal point on the line. If there are several optimal points print the position of the leftmost one. It is guaranteed that the answer is always the integer.