n = int(input()) a = list(map(int,input().split())) ans = 0 s_a=sum(a) for i in range(11): if (s_a+i)%n == 0: ans+=i break if ans == 0: print(0) else: print(1+(100-ans)//n)