#include <bits/stdc++.h>
using namespace std;
int read() {
  int x = 0, flag = 1;
  char c = getchar();
  while ((c > '9' || c < '0') && c != '-') c = getchar();
  if (c == '-') flag = 0, c = getchar();
  while (c <= '9' && c >= '0') {
    x = (x << 3) + (x << 1) + c - '0';
    c = getchar();
  }
  return flag ? x : -x;
}
int n, a[100];
int main() {
  n = read();
  for (int i = (1); i <= (int)(n); i++) a[i] = read();
  int m = 1000;
  for (int i = (2); i <= (int)(n); i++)
    if (a[i] > a[i - 1]) m += m / a[i - 1] * (a[i] - a[i - 1]);
  cout << m;
  return 0;
}
