#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  int cur = 0;
  int money = 1000;
  while (cur < n - 1) {
    if (a[cur] < a[cur + 1]) {
      money = money - (money / a[cur]) * a[cur] + (money / a[cur]) * a[cur + 1];
      cur++;
    } else
      cur++;
  }
  cout << money << endl;
}
