n=int(input()) total=sum(map(int,input().split())) print(((100+total)//n-total//n)+1 if total%n==0 else 0)