I conducted an exit poll of the shopping amount at a department store. Create a program that takes the shopping amount data as input, calculates the average shopping amount per person, and outputs it. The number of people surveyed shall be 100,000 or less, and the shopping amount per person shall not exceed 1 million yen.



Input

The input is given in the following format:


n
v1
v2
::
vn


The first line gives the number of people surveyed n, and the following n lines give the integer vi representing the purchase amount of the ith person.

Output

Please output the average shopping amount (integer: rounded down to the nearest whole number) on one line.

Example

Input

6
12300
5600
33800
0
26495
52000


Output

21699

Difficulty: UNKNOWN_DIFFICULTY

Solutions:
sum = 0
n = int(input())
for i in range(n):
	sum += int(input())
print(sum // n)


N = int(input())
print(sum([int(input()) for i in range(N)]) // N)


n = int(input())
print(sum([int(input()) for i in range(n)]) // n)


import math
N = int(input())
s = 0
for l in range(N):
	s += int(input())
print(s // N)


n = int(input())
v = []
for i in range(n):
	v.append(int(input()))
print(sum(v) // n)


n = int(input())
sum = 0
for _ in range(n):
	sum += int(input())
print(sum // n)


n = int(input())
prices = []
for _ in range(n):
	price = int(input())
	prices.append(price)
ans = int(sum(prices) / n)
print(ans)


n = int(input())
print(sum((int(input()) for _ in range(n))) // n)


n = int(input())
v_list = []
for i in range(n):
	v = int(input())
	v_list.append(v)
print(int(sum(v_list) / n))


n = int(input())
num = []
for i in range(n):
	num.append(int(input()))
print(int(sum(num) / n))


import math
n = int(input())
s = 0
for i in range(n):
	s += int(input())
print(math.floor(s / n))


import sys
from sys import stdin
input = stdin.readline

def main(args):
	n = int(input())
	total = 0
	for _ in range(n):
		total += int(input())
	print('{}'.format(total // n))
main(sys.argv[1:])


n = int(input())
total = sum([int(input()) for _ in range(n)])
print(total // n)


n = int(input())
m = 0
for i in range(n):
	m += int(input())
print(m // n)


def main():
	n = int(input())
	a = 0
	for _ in range(n):
		a += int(input())
	ans = a // n
	print(ans)
main()


from statistics import mean
inputCount = int(input())
prices = [int(input()) for lp in range(inputCount)]
average = mean(prices)
print(int(average))


n = int(input())
print(sum([int(input()) for _ in range(n)]) // n)


inputCount = int(input())
prices = [int(input()) for lp in range(inputCount)]
average = sum(prices) // inputCount
print(average)