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