.
package pl.codegym.task.task05.task0507;
/*
Średnia arytmetyczna
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int inputValue;
int sum=0;
int count=0;
while(true){
inputValue=Integer.parseInt(reader.readLine());
if(inputValue==-1){
break;
} sum += inputValue;
count++;
}
System.out.println(sum/count);
}
}