#include<bits/stdc++.h>

using namespace std;

int k;

string gen(int n){
	if(n==1)
		return to_string(k);
	string res=gen(n-1);
	int pos=0;
	while(pos<res.size()){
		pos=res.find("\\",pos);
		if(pos==-1)
			break;
		res.replace(pos,1,"\\\\");
		pos+=2;
	}
	pos=0;
	while(pos<res.size()){
		int pos=res.find("\"",pos);
		if(pos==-1)
			break;
		res.replace(pos,1,"\\\"");
		pos+=2;
	}
	return "main(){__builtin_printf(\""+res+"\");}";
}

int n;

int main(){
	scanf("%d%d",&n,&k);
	printf("%s",gen(n).c_str());
}