"use strict";
const Main = (input) =>{
   let xs = input.trim().split('\n');
   let N = parseInt(xs[0]);
   let a = xs[1].split(' ');
   let X = 0;
   for(let i=0; i<N; i++){
     X += parseInt(a[i])
   }
   let avg = X / N;
   let min = 100;
   let num = 0;
   for(let i=0; i<N; i++){
     if(Math.abs(a[i]-avg)<min){
       min = Math.abs(a[i]-avg);
       num = i;
     }
   }
   console.log(avg);
  
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));