#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vstr = vector<string>;
string S, T;
ll N, M, H, W, K, L;
void solve() {
  cin >> N;
  vll A(N);
  for (int i = int(0); i < int(N); i++) {
    cin >> A[i];
  }
  ll money = 1000;
  ll kaine = A[0], urine = 100, kai_day = 1, uri_day = -1;
  for (int i = int(1); i < int(N); i++) {
    if (A[i] < urine) {
      ll tanka = urine - kaine;
      ll kosuu = money / kaine;
      if (tanka > 0) {
        money += (tanka * kosuu);
      }
      kaine = A[i];
      kai_day = i + 1;
      urine = 100;
    } else {
      if (A[i] < kaine) {
        kaine = A[i];
        kai_day = i + 1;
      } else if (A[i] > urine) {
        urine = A[i];
        uri_day = i + 1;
      }
    }
  }
  if (uri_day == N && kai_day < uri_day) {
    ll tanka = urine - kaine;
    ll kosuu = money / kaine;
    if (tanka > 0) money += (tanka * kosuu);
  }
  cout << (money) << '\n';
}
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  solve();
  return 0;
}
