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++: #include <bits/stdc++.h>

using namespace std;

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

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

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

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

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

  return 0;


}

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

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

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

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

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



}

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

int main(){
	int n;
	cin >> n;
	double total_money = 0;
	for (int i = 0; i < n; i++) {
		double tmp;
		cin >> tmp;
		total_money += tmp;
	}
	cout << int(total_money / n) << endl;
}

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

int main(void){
  int n,result=0;
  vector<int> spending;
  cin >> n;
  for(int i=0;i<n;i++){
    int a;
    cin >> a;
    spending.push_back(a);
  }
  for(int i=0;i<n;i++){
    result = result+spending[i];
  }
  cout << result/n << endl;
  return 0;
}

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

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

C++: #include<bits/stdc++.h>
using namespace std;

#define pb push_back
#define fr first
#define sc second
typedef vector<int> vi;
typedef pair<int,int> pii;
typedef pair<int,pii> pip; 
const int INF = (1<<25);
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};

int main() {

  int sum=0;
  int n;

  cin>> n;
  for(int i=0; i<n; i++){
    int money;
    cin>> money;
    sum+=money;
  }

  cout<< sum/n<< endl;
}

C++: #include <bits/stdc++.h>

using namespace std;


int main() {
	int n, v;
	long sum;

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

	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main()
{
	int n, m, k;

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

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

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

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

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

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

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <utility>
#include <cstring>
#include <iomanip>
#include <numeric>
#include <limits>
#include <cmath>
#include <cassert>

using namespace std;
using ll = long long;

const int INF = 1<<30;
const int MOD = (int)1e9 + 7;
const int MAX_N = (int)1e5 + 5;
#define debug(x) cout << #x << ": " << x << endl

signed main(void)
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int n; cin >> n;
    ll sum = 0;
    for(int i = 0; i < n; i++)
    {
        ll x; cin >> x;
        sum += x;
    }
    ll avg = sum / n;
    cout << avg << endl;
    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 an = ca / n;
	cout <<an << endl;
	return 0;
}

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

int main(){
	long long sum=0;
	int n, num;
	cin>>n;
	for(int i=0; i<n; i++){
		cin>>num;
		sum+=num;
	}
	cout<<sum/n<<"\n";
	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;
int main(){
int n;
int a,sum=0;
cin>>n;
for(int i=1;i<=n;i++){
cin>>a;
sum=+a;
}
cout<<sum/n;
}

C++: #include <bits/stdc++.h>
using namespace std;
using ll = long long;

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

C++: #include <iostream>

using namespace std;

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

C++: #include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<stack>
#include<queue>
#include<vector>
#include<cmath>
#include<utility>
#include<set>
#include<complex>
#include<map>
#define vi vector<int>
#define vvi vector<vector<int> >
#define ll long long int
#define vl vector<ll>
#define vvl vector<vector<ll>>
#define vb vector<bool>
#define vc vector<char>
#define vs vector<string>
#define ld long double
#define INF 1e9
#define EPS 0.0000000001
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,s,n) for(int i=s;i<n;i++)
#define CC puts("-------ok--------");
#define all(in) in.begin(), in.end()
using namespace std;
typedef pair<int, int> pii;
#define MAX 99999999
int main(){
    ll hoge=0;
    ll n;cin>>n;
    rep(i,n){ll temp;cin>>temp;hoge+=temp;};
    cout<<hoge/n<<endl;
}

C++: /*
	0134:Exit Survery
*/
#include	<iostream>

using namespace std;

int main(void) {
	int w;
	unsigned long long ave, sum = 0;
	
	cin >> w;
	for(int i = 0; i < w; i++) {
		int bu;
		
		cin >> bu;
		sum += bu;
	}
	ave = sum / w;
	cout << ave << endl;
	
	return 0;
}

C++: #include<iostream>
long long n,a,v;main(){for(std::cin>>n;std::cin>>a;)v+=a;std::cout<<v/n<<"\n";return 0;}

C++: #include <cstdio>
#include <cmath>
#define buf 10000
using namespace std;

int main(void){
  int i;
  double n,m,sum;
  char str[buf];

  for( ;fgets(str,sizeof(str),stdin)!=NULL; ){
    sscanf(str,"%lf",&n); sum=0;
    for(i=0;i<n;i++){
      fgets(str,sizeof(str),stdin);
      sscanf(str,"%lf",&m);
      sum+=m;
    }
    sum=floor(sum/n);
    printf("%.0f\n",sum);
  }
  return 0;
}

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

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

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


	return 0;
}