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