#include <bits/stdc++.h>
using namespace std;
const int MAX = 2e5 + 5;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  long long n, a, b = 0, c = 1000;
  cin >> n;
  for (int i = (int)(0), sz = (int)(n); i < sz; i++) {
    cin >> a;
    if (a == 200 && b)
      c *= 2, b = 0;
    else if (a == 100)
      b = 1;
  }
  printf("%lld\n", c);
  return 0;
}
