#include <bits/stdc++.h>
int nextint(void) {
  int n;
  scanf("%d", &n);
  return n;
}
void printint(int d) { printf("%d\n", d); }
int main(void) {
  int n;
  scanf("%d", &n);
  int a[100] = {};
  for (int i = 1; i < n + 1; i++) {
    a[i] = nextint();
  }
  int sum = 1000;
  int x = 1;
  for (int i = 1; i < n + 1; i++) {
    if (a[i] < a[x])
      x = i;
    else if (a[i] > a[x] && a[i + 1] <= a[i]) {
      sum += ((sum / a[x]) * (a[i] - a[x]));
      x = i;
    }
  }
  printint(sum);
  return 0;
}
