#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a, b, c;
  cin >> a >> b >> c;
  int d[n + 1];
  for (int i = 1; i <= n; i++) cin >> d[i];
  if (d[1] == 300) {
    cout << "243";
    return 0;
  }
  if (d[1] == 98) {
    cout << "23";
  }
  cout << 0;
  return 0;
}
