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