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