#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  vector<int> A(80);
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  int now_point = A[0];
  int sabun;
  int shisan = 1000;
  for (int i = 0; i < N; i++) {
    if (now_point < A[i]) {
      sabun = A[i] - now_point;
      shisan += sabun * (shisan / now_point);
      now_point = A[i];
    }
    if (now_point > A[i]) {
      now_point = A[i];
    }
  }
  cout << shisan << endl;
  return 0;
}
