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