Import Import Import Import Import Import Import Class Public Static Int Int Int Throws New
Import Import Import Import Import Import Import Class Public Static Int Int Int Throws New
java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.script.Bindings;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
class Nashorn {
public static int averageCost(int noOfMonths ,int [] travelCostFo
rMonths)
throws ScriptException {
//Write your code here
ScriptEngineManager scriptEngineManager = new ScriptEngi
neManager();
ScriptEngine nashorn = scriptEngineManager.getEngineByNam
e("nashorn");
Integer res = 0;
for(int i: travelCostForMonths){
res+=i;
}
Integer eval = (Integer) nashorn.eval("");
return Math.round((float)res/noOfMonths);
}
}
public class JavaScriptEngine {
public static void main(String[] args) throws IOException, Sc
riptException {
BufferedReader br = new BufferedReader(new InputStreamRea
der(System.in));
int noOfMonths = Integer.parseInt(br.readLine().trim());
int [] travelCostForMonths = new int [noOfMonths];
for(int i=0; i<noOfMonths; i++)
{
travelCostForMonths[i] = Integer.parseInt(br.readLine
().trim());
}
int result = Nashorn.averageCost(noOfMonths, travelCostFo
rMonths);
System.out.println(result);
}
}