#include <bits/stdc++.h>
using namespace std;
template <typename... T>
void rd(T &...args) {
  ((cin >> args), ...);
}
template <typename... T>
void pp(T... args) {
  ((cout << args << " "), ...);
  cout << "\n";
}
void add(long long &x, long long y) {
  x += y;
  if (x >= 1000000007) x %= 1000000007;
  if (x < 0) x = x % 1000000007 + 1000000007;
}
void solve() {
  int n;
  rd(n);
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  ;
  int money = 1000;
  for (long long i = (long long)(1); i <= (long long)(n - 1); i++) {
    money += max((a[i] - a[i - 1]) * (money / a[i - 1]), 0);
  }
  cout << money << "\n";
}
void prep() {}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout << fixed << setprecision(12);
  prep();
  int t = 1;
  while (t--) solve();
  return 0;
}
