#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e6 + 7;
const int N = 1e5 + 7;
void my_dbg() { cout << endl; }
template <typename Arg, typename... Args>
void my_dbg(Arg A, Args... B) {
  cout << ' ' << A;
  my_dbg(B...);
}
int main() {
  int n;
  scanf("%d", &n);
  int a[n];
  for (int i = 0; i < (int)n; i++) scanf("%d", &a[i]);
  vector<pair<int, int>> v;
  for (int i = 1; i < n; i++) {
    if (a[i] - a[i - 1] > 0) v.push_back({a[i - 1], a[i] - a[i - 1]});
  }
  int sum = 1000;
  for (int i = 0; i < v.size(); i++) {
    int x = (sum / v[i].first) * v[i].second;
    sum += x;
  }
  printf("%d\n", (int)sum);
}
