#N = input() N = int(input()) #s = input().split() #hw = [[int(i) for i in input().split()] for _ in range(N)] #N, M = map(int, input().split()) A = list(map(int, input().split())) sum = 0 for i in range(N - 1): sum += A[i] additional = 0 if (sum == 0): additional = 1 print(100 // N + additional)