#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using ULL = unsigned long long;
using PII = pair<int, int>;
using PIL = pair<int, LL>;
using PLL = pair<LL, LL>;
inline void quickread() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
}
const int maxn = 100;
int n;
int a[maxn];
inline void work() {
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i];
  int res = 1000;
  for (int i = 0; i < n - 1; ++i) {
    if (a[i] < a[i + 1]) {
      res += res / a[i] * (a[i + 1] - a[i]);
    }
  }
  cout << res << endl;
}
int main() {
  quickread();
  work();
  return 0;
}
