#include <bits/stdc++.h>
using namespace std;
int n, a[90];
vector<pair<int, int> > v;
long long sum = 1000;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i];
  for (int i = 0; i < n - 1; ++i)
    if (a[i] == 100) v.push_back({i, i + 1});
  if (v.size() == 0) return cout << 1000, 0;
  for (auto i : v)
    if (a[i.second] == 200) sum *= 2;
  cout << sum;
}
