import java.util.Arrays; import java.util.Scanner; public class HelloWorld { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int number_total = Integer.parseInt(sc.nextLine()); String[] line = sc.nextLine().split(" "); int[] array = Arrays.stream(line).mapToInt(Integer::parseInt).toArray(); int sum = 0; int count = 0; for (int i = 0; i < number_total - 1; i ++) { sum += array[i]; } for (int i = sum + 1; i <= sum + 100; i ++) { if (i % number_total == 0) { count +=1; } } System.out.println(count); } }