#include <bits/stdc++.h>
using namespace std;
void init() {}
void solve() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  long long ans = 1000;
  for (int i = 0; i < n - 1;) {
    if (a[i] < a[i + 1]) {
      ans += (ans / a[i]) * (a[i + 1] - a[i]);
      i += 2;
    } else
      ++i;
  }
  cout << ans << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  init();
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
