#include <iostream>
#include <cmath>
using namespace std;
void input(double* a, int n) {
for (int i = 0; i < n; i++)
cin >> a[i];
}
void output(double* a, int n) {
for (int i = 0; i < n; i++)
cout << a[i] << " ";
}
double* sum(double* a, double* b, int n) {
auto c = new double[n];
for (int i = 0; i < n; i++)
c[i] = a[i] + b[i];
return c;
}
double length(double* a, int n) {
double sum = 0;
for (int i = 0; i < n; i++)
sum += a[i] * a[i];
return sqrt(sum);
}
double* normalize(double* a, int n) {
auto normalized = new double[n];
double length_a = length(a, n);
for (int i = 0; i < n; i++)
normalized[i] = a[i] / length_a;
return normalized;
}
double dot(double* a, double* b, int n) {
double sum = 0;
for (int i = 0; i < n; i++)
sum += a[i] * b[i];
return sum;
}
double distance(double* a, double* b, int n) {
double sum = 0;
for (int i = 0; i < n; i++)
sum += pow(b[i] - a[i], 2);
return sqrt(sum);
}
double average(double* a, int n) {
double sum = 0;
for (int i = 0; i < n; i++)
sum += a[i];
return sum / n;
}
int main() {
int n;
cin >> n;
auto a = new double[n];
input(a, n);
cout << average(a, n);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBpbnB1dChkb3VibGUqIGEsIGludCBuKSB7Cglmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykKCQljaW4gPj4gYVtpXTsKfQoKdm9pZCBvdXRwdXQoZG91YmxlKiBhLCBpbnQgbikgewoJZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspCgkJY291dCA8PCBhW2ldIDw8ICIgIjsKfQoKZG91YmxlKiBzdW0oZG91YmxlKiBhLCBkb3VibGUqIGIsIGludCBuKSB7CglhdXRvIGMgPSBuZXcgZG91YmxlW25dOwoJCglmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykKCQljW2ldID0gYVtpXSArIGJbaV07CgkKCXJldHVybiBjOwp9Cgpkb3VibGUgbGVuZ3RoKGRvdWJsZSogYSw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