#include <algorithm>
#include <string.h>
#include <iostream>
#include <stdio.h>

using namespace std;

typedef long long ll;
typedef pair<ll, ll> PLL;

const ll A = 210;

ll n;
ll a[A];

int main() {
	ios::sync_with_stdio(false); cin.tie(false); cout.tie(false);

	cin >> n;
	for (ll i = 1; i <= n; i++) cin >> a[i];

	ll res = 1000;
	for (ll i = 1; i <= n - 1; i++) {
		if (a[i + 1] > a[i]) {
			res += res / a[i] * (a[i + 1] - a[i]);
		}
	}
	cout << res << endl;

	return 0;
}