# -- coding: utf-8 

total=0
counter=0
number=int(input())
number1=number
while number != 0:
    number=int(input())
    total+=number
    counter+=1
print(int((total+number1)/counter))
    
    
    
     



        
    
        


        
        