Go: package main

import (
	"bufio"
	"os"
	"strconv"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	scanner.Scan()
	n, _ := strconv.Atoi(scanner.Text())
	sum := 0
	for i := 0; i < n; i++ {
		scanner.Scan()
		tmp, _ := strconv.Atoi(scanner.Text())
		sum += tmp
	}
	fmt.Println(sum/n)
}

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


if __name__ == "__main__":
    main()

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

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

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

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

Python: n = int(input())

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

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

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

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

Python: n = int(input())

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

print(sum//n)

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

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

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

Python: from statistics import mean

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

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

Python: 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)

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

Python: import math

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

Python: # -*- 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:])

Python: # 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)

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

Python: import math

N = int(input())

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

print(s//N)

C++: #include<cstdio>
using namespace std;
main(){
  int n;
  while(~scanf("%d",&n)){
    int sum=0;
    for(int i=0;i<n;i++){
      int m;
      scanf("%d",&m);
      sum+=m;
    }
    printf("%d\n",sum/n);
  }
}

C++: #include<iostream>
#include<cstdio>
#include<algorithm>
#include<climits>
#include<string>
#include<vector>
#include<list>
#include<map>
#include<set>
#include<cmath>
#include<queue>
#include<cstring>
#include<stack>
#include<functional>
using namespace std;
#define int long long

signed main(){
	int N,V,sum=0;
	cin>>N;
	for(int i=0;i<N;i++){
		cin>>V; sum += V;
	}
	printf("%lld\n",sum/N);
	return 0;
}

C++: #include<iostream>

int main()
{
	int n;
	long long expense=0;
	
	std::cin>>n;
	
	for(int i=0;i<n;i++)
	{
		int price;
		std::cin>>price;
		expense+=price;
	}
	expense/=n;
	std::cout<<expense<<std::endl;
	return 0;
}

C++: //↓template↓

#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n)  n.begin(),n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30];
long long fac[200005], finv[200005], inv[200005];
vector<long long>dij;
struct edge { long long to, cost; };
vector<vector<edge> >G;

long long mod_pow(long long a, long long b) {
	long long res = 1, mul = a;
	for (int i = 0; i < 31; ++i) {
		if (b >> i & 1) {
			res *= mul;
			res %= MOD;
		}
		mul = (mul * mul) % MOD;
	}

	return res;
}

void addedge(int from, int to, int cost) {
	G[from].push_back({ to,cost });
	G[to].push_back({ from,cost });
}

//↑template↑


long long n, k[100005], sum;
int main() {
	cin >> n;
	for (int i = 0; i < n; ++i) {
		cin >> k[i]; sum += k[i];
	}
	cout << sum / n << endl;
}

C++: #include<iostream>
#include<vector>
#include<string>
using namespace std;

int main(){
int a;cin>>a;
int s=0;
for(int b=0;b<a;b++){
	int c;
	cin>>c;
	s+=c;
	}
	cout<<s/a;
}

C++: #include <iostream>
using namespace std;
int main()
{
	int n, m = 0, s = 0, i;
	for (i = 0; i < n; i++)
	{
		cin >> m;
		s += m;
	}
	cout << s / n << endl;
	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int n, sum = 0, i, tmp;
	
	scanf("%d", &n);
	for (i = 0; i < n; i++){
		scanf("%d", &tmp);
		sum += tmp;
	}
	printf("%d\n", sum / n);
	
	return (0);
}

C++: //04
#include<iostream>

using namespace std;

int main(){
  int n;
  cin>>n;
  long long s=0;
  for(int i=0;i<n;i++){
    int p;
    cin>>p;
    s+=p;
  }
  cout<<s/n<<endl;
  return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n)           REPEAT(i, 0, n)
#define REPEAT(i, k, n)     for(int i = (k); i < (k+n); ++i)
#define FROMTO(i,f,t)       for(int i = f; i < t; i++)
typedef unsigned long long ull;

int main(){
    int n;
    cin >> n;       // 10^5
    ull total = 0;
    REP(i,n){
        ull t;
        cin >> t;   // >= 10^6
        total += t;
    }
    cout << total/n << endl;
    return 0;
}

C++: int main(){long long int i,a,n,s=0;scanf("%lld",&n);for(i=n;i--;s+=a)scanf("%lld",&a);printf("%lld\n",s/n);}

C++: #include<iostream>
using namespace std;
int main(){
  int n,money,total=0;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> money;
    total+=money;
  }
  total/=n;
  cout << total << endl;
}

C++: #include<iostream>
using namespace std;

int main(){
    int n;
    while(cin >> n){
        long long sum = 0;
        for(int i = 0; i < n; i++){
            int inp;
            cin >> inp;
            sum += inp;
        }
        cout << sum / n << endl;
    }
}

C++: #include<cstdio>
using namespace std;
main(){
  int n;
  while(~scanf("%d",&n)){
    int sum=0;
    for(int i=0;i<n;i++){
      int m;
      scanf("%d",&m);
      sum+=m;
    }
    printf("%d\n",sum/n);
  }
}

C++: #include <cstdio>

int n,v;
long long s=0;

int main(){
	scanf("%d",&n);
	for(int i = 0; i < n; i++){
		scanf("%d",&v);
		s += v;
	}
	printf("%Ld\n",s/n);
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(void){
    int n,a;
    long long int sum=0;
    cin>>n;
    for (int i=0;i<n;i++) {
        cin>>a;
        sum+=a;
    }
    long long int ave=sum/n;
    cout<<ave<<endl;
}

C++: #include <iostream>
#include <string>
using namespace std;

int main() {
	
	int t,i;
	int sum=0;
	int v;
	
	
	
	for(cin>>t,i=t;i--,cin>>v;){
		sum+=v;
	}
	
	cout<<sum/t<<endl;
	
	
	
	
	
	
	return 0;
}

C++: #include <iostream>
using namespace std;

int main()
{
	int n, sum =0;
	cin >> n;
	
	for (int i = 0; i < n; i++){
		int a;
		cin >> a;
		sum += a;
	}
	
	cout << sum / n << endl;
	
	return (0);
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <functional>
#include <complex>
using namespace std;
int main() {
	int n;
	cin >> n;
	int a;
	int sum = 0;
	for (int i = 0;i < n;i++) {
		cin >> a;
		sum += a;
	}
	cout << sum / n << endl;
}

C++: #include<iostream>
using namespace std;

int main()
{
	long long n, a, avg=0;
	int i;
	cin>>n;
	for(i=0;i<n;i++){
		cin>>a;
		avg+=a;
	}
	cout<<avg/n<<endl;
	return 0;
}