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