#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int i, N, score = 1000;
  cin >> N;
  vector<int> A(N);
  for (i = 0; i < N; ++i) cin >> A[i];
  int j = 0, l;
  for (i = 0; i < N; ++i) {
    if (A[j] < A[i]) {
      score += (score / A[j]) * (A[i] - A[j]);
      j = i;
    } else if (A[j] > A[i])
      j = i;
  }
  cout << score << endl;
  return 0;
}
