#include <bits/stdc++.h>
using namespace std;
int n;
int a[80];
void solve() {
  long money = 1000;
  for (int i = 0; i < n - 1; i++) {
    if (a[i] < a[i + 1]) {
      money += (a[i + 1] - a[i]) * (int)(money / a[i]);
    }
  }
  printf("%ld\n", money);
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  solve();
}
