#include <bits/stdc++.h>
using ll = long long;
using namespace std;
void solve() {}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    int m;
    cin >> m;
    a[i] = m;
  }
  int money = 1000;
  vector<int> dp(n + 1);
  for (int i = 0; i < n - 1; i++) {
    if (a[i] < a[i + 1]) {
      money += (money / a[i]) * (a[i + 1] - a[i]);
    }
  }
  cout << money << endl;
  return 0;
}
