#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline istream &operator>>(istream &in, vector<T> &v) {
  for (auto &x : v) in >> x;
  return in;
}
template <typename T>
inline ostream &operator<<(ostream &out, const vector<T> &v) {
  for (auto &x : v) cout << x << ' ';
  cout << '\n';
  return out;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int64_t n;
  cin >> n;
  vector<int64_t> a(n);
  cin >> a;
  int32_t total = 1000;
  for (int32_t i = 1; i < n; i++) {
    if (a[i] > a[i - 1]) {
      total += (a[i] - a[i - 1]) * (total / a[i - 1]);
    }
  }
  cout << total << '\n';
  return 0;
}
