import java.util.*; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { int n = sc.nextInt(); int gcd = sc.nextInt(); for (int i = 1;i < n;i++) { gcd = gcd(gcd, sc.nextInt()); } System.out.println(100/gcd); } private static int gcd(int a, int b) { int temp; while (b % a != 0) { temp = a; a = b % a; b = temp; } return a; } }