package com.codegym.task.task05.task0507;

/*
Arithmetic mean

*/
import java.io.*;
public class Solution {
    public static void main(String[] args) throws Exception {
        //write your code here
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int num = Integer.parseInt(reader.readLine());
        int counter = 0;
        int total = 0;
        int mean;
        while(num != -1){
            counter++;
            total = total + num;

            if(num == -1){
                total = total + 1;
                mean = total / counter;
                System.out.println(mean);
                break;
            }
        }

    }
}