#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-6;
void solve() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i <= n - 1; ++i) cin >> v[i];
  long long cur = 1000;
  for (int day = 1; day <= n - 1; ++day) {
    if (v[day] > v[day - 1]) {
      int no = cur / v[day - 1];
      cur += (no * (v[day] - v[day - 1]));
    }
  }
  cout << cur;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int T = 1;
  while (T--) solve();
  return 0;
}
