#include <bits/stdc++.h>
using namespace std;
const int N = 88;
int a[N];
int32_t main() {
  int mn = 100000000, n, ans = 1000;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    int j;
    for (j = i + 1; j < n; j++) {
      if (a[j] != a[i]) {
        break;
      }
    }
    if (j == n) break;
    if (a[j] > a[i]) {
      int x = ans / a[i];
      ans += (x * (a[j] - a[i]));
    }
    i = j - 1;
  }
  cout << ans << endl;
}
