import java.util.Scanner; public class Main_yukicoder339 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int gcd = 100; for (int i = 0; i < n; i++) { gcd = gcd(gcd, sc.nextInt()); } System.out.println(100 / gcd); sc.close(); } private static int gcd(int n, int m) { if (m == 0) { return n; } else { return gcd(m, n % m); } } }