#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, SWAP, money = 1000, result;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[n];
  }
  for (int j = 0; j < n; j++) {
    for (int i = 0; i < n - 1; i++) {
      if (arr[j] > arr[j + 1]) {
        SWAP = arr[j];
        arr[j] = arr[j + 1];
        arr[j + 1] = SWAP;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    result = money / arr[i];
    for (int j = 0; j < n; j++) {
      result = result * arr[n - 1];
      break;
    }
    break;
  }
  cout << result;
  return 0;
}
