N=int(input()) m=sum(map(int,input().split())) if N>1 else 0 print((m+100)//N-(m-1)//N)