#include<bits/stdc++.h>
using namespace std;
const string normal_front="freopen(";
const string normal_end=");";
string problems[5];
int ans[1010],tot=0;
int t;
int n,m;
int main()
{
cin>>t;
cin>>n>>m;
for(int i=0;i<m;i++)cin>>problems[i];
for(int i=0;i<n;i++)
{
string code;
int ans_now=1;//1普通人 2见祖宗 3乐子人
for(int j=0;j<2*m;j++)
{
cin>>code;
bool flag=(j%2==0);
string normal=normal_front+'"'+problems[j/2]+(flag?".in":".out")+'"'+','+'"'+(flag?'r':'w')+'"'+','+(flag?"stdin":"stdout")+normal_end;
if(code=="//"+normal)ans_now=2;
if(code!=normal&&ans_now==1)ans_now=3;
}
string str,str1;
if(i==n-1)
while(getchar()!=EOF){}
else
while(!(str==str1&&str1=="\n"))
str=getchar(),str1=getchar();
ans[tot++]=ans_now;
}
for(int i=0;i<tot;i++)
{
if(ans[i]==1)cout<<"PION2202 RP++."<<endl;
else if(ans[i]==2)cout<<"Wrong file operation takes you to your ancestors along with your 3 years' efforts on OI."<<endl;
else cout<<"Good luck and have fun."<<endl;
}
return 0;
}
能被普及-卡住真是丢死人了