#include <bits/stdc++.h>
using namespace std;
int main() {
  int D, buy = 300, sell = 0, mon = 1000;
  cin >> D;
  for (int i = 0; i < D; i++) {
    int x;
    cin >> x;
    if (sell == 0 && buy >= x)
      buy = x;
    else if (sell < x)
      sell = x;
    else {
      mon = mon / buy * sell + (mon % buy);
      buy = 300;
      sell = 0;
    }
  }
  if (buy < sell) mon = mon / buy * sell + (mon % buy);
  cout << mon << endl;
}
