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

C++: //Name: Exit Survey
//Level: 1
//Category: やるだけ
//Note: 

/**
 * がんばる。
 */
#include <iostream>

using namespace std;

bool solve(bool first) {
    int N;
    if(!(cin >> N)) return false;
    if(!N) return false;

    long long sum = 0;
    for(int i = 0; i < N; ++i) {
        int v;
        cin >> v;
        sum += v;
    }
    cout << sum / N << endl;
    return true;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout.setf(ios::fixed);
    cout.precision(10);

    bool first = true;
    while(solve(first)) {
        first = false;
    }
    return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
//	cut here before submit 
//	freopen ("testcase.exitsurvey2", "r", stdin );
	string str = "";
	int n;

	getline (cin, str );
	stringstream ssn(str);
	ssn >> n;
	long long total = 0LL;

	int i;
	for (i = 0; i < n; ++i){
		int money = 0;
		getline (cin, str );
		stringstream ss(str);
		ss >> money;

		total += (long long)money;
	} // end loop
	
	long long res = total/n;
	cout << res << endl;	
		
	return 0;
}

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

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

C++: #define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES

#include <stdio.h>
#include <ctype.h>
#include <string>
#include <iostream>
#include <vector>
#include <stack>
#include <fstream>
#include <sstream>
#include <queue>
#include <exception>
#include <cmath>
#include <numeric>
#include <map>
#include <algorithm>
#include <bitset>
#include <set>
#include <functional>

#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)

using namespace std;
typedef long long int lint;

bool AOJ0134()
{
	int n;
	cin >> n;
	vector<lint> val(n);
	REP(i, n) {
		cin >> val[i];
	}
	cout << accumulate(val.begin(), val.end(), (lint)0) / n << endl;
	return true;
}

int main()
{
	AOJ0134();

	return 0;
}

C++: #include<stdio.h>

int main(void){
	unsigned long long int n,g,i,sum=0;

	scanf("%11d",&n);
	for(i=0;i<n;i++){
		scanf("%11d",&g);
		sum+=g;
	}
	printf("%11d\n",sum/n);
	return 0;
}

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

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

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

int main(void){
	int n;
	cin>>n;
	int ave = 0;
	for(int i=0;i<n;i++){
		int x;
		cin>>x;
		ave += x;
	}
	cout<<ave/n<<endl;

	return 0;
}

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

C++: #include <iostream>
using namespace std;
/** Problem0134 : Exit Survey **/
int main()
{
	long tot=0;
	int n;
	cin >> n;
	for (int i=0; i<n; i++) {
		int a;
		cin >> a;
		tot+=a;
	}
	cout << tot/n << endl;
	
	return 0;
}

C++: #include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){

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


	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,w=100000;
    cin>>n;
    double num,ans;
    cin>>ans;
    ans/=w;
    for(int i=1;i<n;i++){
        cin>>num;
        num/=w;
        ans+=num;
    }
    ans/=n;
    int kawa=ans*w;
    cout<<kawa<<endl;
}

C++: #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <utility>
using namespace std;

#define rep(i,n) for(int (i)=0; (i)<(int)(n); ++(i))
#define foreach(c,i) for(__typeof((c).begin()) i=(c).begin();i!=(c).end();i++)
typedef long long ll;

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

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

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

C++: #include<iostream>

using namespace std;

int main()
{

int num, ans = 0, wk;

cin >> num;

for(int i = 0; i < num; i++)
{
cin >> wk;

ans += wk;
}

cout << ans / num << endl;

}

C++: #include<iostream>
#include<cstdio>
#include<math.h>
using namespace std;

int main(){
  long long n,s=0;
  int i,j;

  cin >> n;
  for(i=0;i<n;i++){
    cin >> j;
    s+=j;
  }
  cout << floor(s/n) << endl;



}

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

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

C++: import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}

C++: #include<iostream>
using namespace std;
int main(){
int n;
int a,sum;
cin>>n;
for(int i=1;i<=n;i++){
cin>>a;
sum=+a;
}
cout<<sum/n;
}

C++: #include<stdio.h>

int main(){

int N;
int x,c=0;

scanf("%d",&N);

for(int i=0;i<N;i++)
{
scanf("%d",&x);
c+=x;
}
c=c/N;
printf("%d\n",c);
return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<time.h>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double EPS=1e-10;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
int main(){
	int n;
	cin>>n;
	ll sum=0;
	rep(i,n){
		ll a;cin>>a;sum+=a;
	}
	cout<<sum/n<<endl;
}

C++: #include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <list>
#include <iostream>
#include <sstream>
#include <climits>
#include <cfloat>
#include <complex>


typedef long long ll;
const double Eps = 1e-5;

using namespace std;

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

	return 0;
}

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

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