n = int(input()) if n == 1: print(101) else: A = list(map(int,input().split())) print((sum(A)+100) // n - (sum(A) - 1) // n)