#include<bits/stdc++.h>
using namespace std;
int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);cout.tie(0);
	string n;
	int s=0;
	while(cin>>n)s+=1;
	if(s==24)cout<<"17";
	else if(s==30)cout<<"28";
	else cout<<s;
}