'use strict';

// given vector A
// S = summation of (Ai - (b+i))^2 as i goes from 1 to N
// find dS/db = 0 (minimize), (Ai - (b+i)) = 0
// summation (Ai) - summation (b+i) = 0
// summation (Ai) = summation (b+i)
// summation A(i) = n*b
// b = summation A(i)/n
// sqrt everything to return to original form

const summation = intList => intList.reduce((acc, curr) => acc+parseInt(curr), 0);

const input = require("fs").readFileSync("/dev/stdin", "utf8").split("\n");
/// const input = "5\n2 2 3 5 5".split("\n");
const count = parseInt(input[0]);
const inputList = input[1].split(" ");

console.log(Math.round(Math.sqrt(summation(inputList)/count)));