#include <bits/stdc++.h>
using namespace std;
void solve(int t) {
  int a, k, i, j, n, sum = 1000, mx = 0, ind, ct = 1;
  cin >> n;
  int D[n + 5];
  for (i = 0; i < n; i++) cin >> D[i];
  for (i = 1; i < n; i++) {
    if (D[i] > D[i - 1]) {
      ct = sum / D[i - 1];
      sum += ct * (D[i] - D[i - 1]);
    }
  }
  cout << sum << endl;
}
int main() {
  int t, tt = 1;
  for (t = 1; t <= tt; t++) solve(t);
  return 0;
}
