#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  long long sum = 1000;
  for (int i = 0; i < n - 1; i++) {
    int dif = a[i + 1] - a[i];
    if (dif > 0) {
      int x = sum / a[i];
      sum += dif * x;
    }
  }
  cout << sum << endl;
}
