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