#include <bits/stdc++.h>
using namespace std;
template <class type>
void displaySingle(type &arr) {
  for (auto i : arr) cout << i << " ";
  cout << endl;
}
template <class type>
void displayDouble(type &arr) {
  for (auto &&i : arr) {
    for (auto &&j : i) cout << j << " ";
    cout << std::endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> arr(n);
  for (int i = 0; i < (n); i++) cin >> arr[i];
  int start = 0;
  int end = 0;
  int amount = 1000;
  for (int i = 0; i < (n - 1); i++) {
    if (arr[i] < arr[i + 1])
      amount += (arr[i + 1] - arr[i]) * (amount / arr[i]);
  }
  cout << amount << endl;
}
