#include<bits/stdc++.h>
using namespace std;
#define int long long 
signed main(){
	cin.tie(0);
	cout.tie(0);
	int a;
	string b;
	cin>>a;
	for(int i=1;i<=a;i++){
		for(int j=1;j<=4;j++){
			cin>>b;
		}
	}
	if(a==10){
		cout<<1;
	}else{
		cout<<58;
	}
}