#include using namespace std; #define sorted(a) sort(a.begin(), a.end()); typedef long long ll; const long mod = 1e9 + 7; int main(void) { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; vector A(N); for (int i = 0; i < N; i++) cin >> A[i]; for (int i = 1; i <= 100; i++) { for (int j = 0; j < N; j++) { if ((i * A[j]) % 100) break; else if (j == N - 1) { cout << i << endl; return 0; } } } }