#include<bits/stdc++.h>
using namespace std;
int main(){
	int i,j,y=0,n=0;
	for(i=1;i<31;i++){
		for(j=1;j<31;j++){
			if(i|j-i&j!=i^j){
				cout<<'n'<<' '<<i<<' '<<j<<endl;
				n++;
			}else{
				cout<<'y'<<' '<<i<<' '<<j<<endl;
				y++;
			}
		}
	}
	cout<<n<<' '<<y;
	return 0;
}

