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;
	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;
	cin >> n;
	int sum = 0;
	for(int i=0;i<n;i++){
		int a;
		cin >> a;
		sum += a;
	}
	cout << sum/n << endl;
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#define int long long
using namespace std;

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

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

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

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

int main() {
	int n;
	cin >> n;
	long long s;
	for(int i = 0; i < n; i++) {
		int tmp;
		cin >> tmp; s += tmp;
	}

	cout << s / n << endl;
	return 0;
}

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

int main() {
    int n, a;
    cin >> n;
    long long 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;
    cin>>n;
    double num,ans;
    cin>>ans;
    ans/=100000;
    for(int i=1;i<n;i++){
        cin>>num;
        num/=100000;
        ans+=num;
    }
    ans/=n;
    int kawa=ans*100000;
    cout<<kawa<<endl;
}

C++: #include<iostream>
#include<cstring>
#include<algorithm>
#include<string>
#include<vector>
#include<cstdio>
#include<cmath>
#define pb(in,tmp) in.push_back(tmp)
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,b) loop(i,0,b)
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
using namespace std;
int main(){
  int n;
  int m=0;
  cin>>n;
  rep(i,n){
    int tmp;
	cin>>tmp;
	m+=tmp;
  }
  cout<<m/n<<endl;
}

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

C++: #include<iostream>
#include<cstdio>
#include<iostream>

using namespace std;

int main(void){
	
	int n,temp;
	double p;
	scanf("%d",&n);
	for(int i = 0; i < n ;i++){
		scanf("%d", &temp);
		p+=temp;
	}
	
	printf("%.0lf\n",p/n);
	
	return 0;
}

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

C++: #include <iostream>
using namespace std;
int main() {
  int 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>
using namespace std;

int main()
{
  int n;
  cin >> n;

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

  cout << sum / n << endl;

  return 0;
}

C++: #include <iostream>

using namespace std;

void solve()
{
	int n;
	cin >> n;
	unsigned long long int sum = 0;
	for(int i = 0; i < n; ++i)
	{
		int input;
		cin >> input;
		sum += input;
	}
	cout << sum / n << endl;
}

int main()
{
	solve();
	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;
	double sum=0;
	for(int i=0;i<n;i++){
        cin>>a;
        sum+=(double)a/n;
	}
	cout<<(int)sum<<endl;


	return 0;
}

C++: #include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void)
{
	int i,j,n;
	long long kai,sum,hei;
	scanf("%d",&n);
	sum=0;
	for(i=0;i<n;i++)	{
		scanf("%lld",&kai);
		sum+=kai;
	}
	hei=sum/n;
	printf("%lld\n",hei);
	return 0;
}

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

using namespace std;

#define rep(i,n) for(int i=0; i<(n); i++)
#define repc(i,s,e) for(int i=(s); i<(e); i++)
#define pb(n) push_back((n))
#define mp(n,m) make_pair((n),(m))
#define all(r) r.begin(),r.end()
#define fi first
#define se second

typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef vector<ll> vl;
typedef vector<vl> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;






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

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

C++: #include <stdio.h>
#include <math.h>
int main() {int n,k;double i,j=0.0;scanf("%d",&n);k=n;while (n--) scanf("%lf",&i),j+=i;printf("%.0lf\n",floor(j/(k+0.0)));return 0;}

C++: #include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <deque>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <bitset>
#include <functional>
#include <utility>
#include <algorithm>
#include <numeric>
#include <typeinfo>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <ctime>

using namespace std;

#define dump(n) cout<<"# "<<#n<<"="<<(n)<<endl
#define debug(n) cout<<__FILE__<<","<<__LINE__<<": #"<<#n<<"="<<(n)<<endl
#define repi(i,a,b) for(int i=int(a);i<int(b);i++)
#define rep(i,n) repi(i,0,n)
#define iter(c) __typeof((c).begin())
#define foreach(i,c) for(iter(c) i=(c).begin();i!=(c).end();i++)
#define allof(c) (c).begin(),(c).end()
#define mp make_pair

typedef unsigned int uint;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int,int> pii;

int main()
{
	int n;
	cin>>n;
	vector<ll> a(n);
	rep(i,n)
		cin>>a[i];
	cout<<accumulate(allof(a),0)/n<<endl;
	
	return 0;
}

C++: #include<iostream>
#include<math.h>
#include<vector>
#include<algorithm>
#include<cstdio>
#include <string>
using namespace std;
 
int main(){
   int n,i;
   long long tmp,sum=0;
   long mean;
   cin>>n;
   for(i=0;i<n;i++){
       cin>>tmp;
        sum+=tmp;
   }
   mean=sum/n;
   cout<<mean<<endl;
    return 0;
}

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

C++: #include <cstdio>

int main(){
	int n;
	unsigned long long int sum = 0;
	int in;
	scanf("%d", &n);
	for(int i = 0; i < n; i++){
		scanf("%d", &in);
		sum += in;
	}
	
	printf("%d\n", sum / n);
	
	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() {
	long int n;
	cin >> n;
	long long int a;
	long int sum = 0;
	for (int i = 0;i < n;i++) {
		cin >> a;
		sum += a;
	}
	cout << sum / n << endl;
}

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

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

C++: using namespace std;long long n,a,v;main(){for(cin>>n;cin>>a;)v+=a;cout<<v/n<<endl;return 0;}