#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int* arr = new int[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  int stocks = 0;
  int total = 1000;
  for (int i = 1; i < n; i++) {
    if (arr[i] > arr[i - 1]) {
      total += (arr[i] - arr[i - 1]) * (total / arr[i - 1]);
    }
  }
  cout << total << endl;
  return 0;
}
