Problem:


出口調査

あるデパートで買い物金額の出口調査を行いました。買い物金額のデータを入力とし、1 人あたりの平均買い物金額を計算し、出力するプログラムを作成してください。調査人数は、10 万人以下とし、一人あたりの買い物金額は 100 万円を超えないものとします。

Input

入力は以下の形式で与えられます。

n
v1
v2
:
vn

1 行目に調査人数 n、続く n 行に i 人目の買い物金額を表す整数 vi が与えられます。

Output

平均買い物金額（整数：小数点以下は切り捨て）を１行に出力してください。

Sample Input

6
12300
5600
33800
0
26495
52000

Output for the Sample Input

21699



Sample input:
6
12300
5600
33800
0
26495
52000


Sample output:
21699

Submission status: Accepted

Solution code:
x = []
for _ in [0] * input():
  x.append(input())
print sum(x)/len(x)

Submission status: Accepted

Solution code:
x = 0
n = int(raw_input())
for _ in [0] * n:
  x += int(raw_input())
print x/n

Submission status: Accepted

Solution code:
x=0
n=int(raw_input())
for _ in [0]*n:
  x+=int(raw_input())
print x/n

Submission status: Accepted

Solution code:
n=int(raw_input())
print sum(map(lambda x:int(raw_input()),[0]*n))/n

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(raw_input())
tot = 0
for i in range(n):
    tot += int(raw_input())
print int(tot/n)

Submission status: Accepted

Solution code:
import math
N = input()
S = sum([int(raw_input()) for i in range(N)]) / float(N)
print int(math.floor(S))

Submission status: Accepted

Solution code:
N = input()
print sum([int(raw_input()) for i in range(N)]) / N

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0134

"""
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))


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
from statistics import mean

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

N = int(input())

s = 0
for l in range(N):
    s += int(input())

print(s//N)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# AOJ 0134 Exit Survey
# Python3 2018.6.18 bal4u

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

Submission status: Accepted

Solution code:
n = input()
p = 0
lst = []
while p != n:
    lst.append(input())
    p += 1
print sum(lst)/n

Submission status: Accepted

Solution code:
s = 0
n = int(raw_input())
for i in range(n):
    s += int(raw_input())
print s / n

Submission status: Accepted

Solution code:
from __future__ import print_function

try:
    xrange
except NameError:
    pass
else:
    range = xrange

N = int(raw_input())
print(sum(int(raw_input()) for _ in range(N)) / N)

Submission status: Accepted

Solution code:
n=input()
print sum([input() for i in range(n)])/n

Submission status: Accepted

Solution code:
N = input()
print sum(input() for _ in xrange(N))/N

Submission status: Accepted

Solution code:
n = input()
print sum([input() for i in xrange(n)])/n

Submission status: Accepted

Solution code:
n = int(raw_input())
print sum([int(raw_input()) for i in xrange(n)])/n

Submission status: Accepted

Solution code:
n=input()
print sum([int(raw_input()) for i in range(n)])/n

Submission status: Accepted

Solution code:
n=input()
print sum([int(raw_input()) for i in [1]*n])/n

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
n = int(input())

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

print(sum//n)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

ans = int(sum(prices) / n)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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