import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for(int i = 0; i < N; i++) { a[i] = sc.nextInt(); } int ans = 0; for(int x = 1; x <= 100; x++) { boolean flg = true; for(int i = 0; i < N; i++) { if((x * a[i]) % 100 != 0) { flg = false; break; } } if(flg) { ans = x; break; } } System.out.println(ans); } }