import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] nums = new int[n]; for (int i = 0; i < n; i++) nums[i] = sc.nextInt(); for (int divisor = 100; divisor >= 1; divisor--) { boolean flg = true; for (int ni = 0; ni < n; ni++) { if (nums[ni] % divisor != 0) { flg = false; break; } } if (flg) { int sum = 0; for (int ni = 0; ni < n; ni++) sum += nums[ni] / divisor; System.out.println(sum); break; } } sc.close(); } }