#include <bits/stdc++.h>
int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);
  int N;
  std::cin >> N;
  std::vector<int> A(N + 1);
  for (int i = 0; i < N; ++i) {
    std::cin >> A[i];
  }
  int ans = 1000;
  A[N] = 99;
  int pre = 201;
  int stock = 0;
  for (int a : A) {
    if (pre < a) {
      stock += ans / pre;
      ans -= pre * (ans / pre);
    } else if (pre > a) {
      ans += pre * stock;
      stock = 0;
    } else {
    }
    pre = a;
  }
  std::cout << ans;
  return 0;
}
