#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 7;
const double pi = acos(-1);
const long long mod = 1e9 + 7;
const double eps = 1e-6;
const int inf = 0x3f3f3f3f;
int a[87];
int main() {
  int n;
  scanf("%d", &n);
  int tot = 1000;
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  for (int i = 1; i <= n; i++) {
    if (a[i] < a[i + 1]) tot = (tot % a[i] + tot / a[i] * a[i + 1]);
  }
  printf("%d\n", tot);
  return 0;
}
