#include <bits/stdc++.h>
using namespace std;
template <class T>
inline istream& operator>>(istream& str, vector<T>& a) {
  for (auto& i : a) str >> i;
  return str;
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int price = a[0], now = 1000;
  for (int i = 0; i < n; ++i) {
    if (a[i] > price) {
      now += (now / price) * (a[i] - price);
      price = a[i];
    } else {
      price = min(price, a[i]);
    }
  }
  cout << now << "\n";
  return 0;
}
