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 = sc.nextInt(); int sum = 0; int count = 0; for (int i = 0; i < number_total - 1; i ++) { sum += sc.nextInt(); } for (int i = sum; i <= sum + 100; i ++) { if (i % number_total == 0) { count +=1; } } System.out.println(count); } }