import java.util.Arrays; import java.util.HashSet; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; public class Main { public static int gcd(int a, int b){ return b == 0 ? a : gcd(b, a % b); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); int[] array = new int[N]; for(int i = 0; i < N; i++){ array[i] = sc.nextInt(); } int gcd = array[0]; for(int i = 1; i < N; i++){ gcd = gcd(gcd, array[i]); } System.out.println(100 / gcd); } }