#include<iostream>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
string s[m],name,standard_anwser,anwser;
for(int i = 0;i < m;i++) cin>>s[i];
for(int i = 0;i < n;i++){
cin>>name;
for(int j = 0;j < m;j++){
standard_anwser = name + ".zip/" + name + "/" + s[i] + "/" + s[i] +".cpp";
cin>>anwser;
if(anwser == standard_anwser) cout<<"Fusu is happy!"<<endl;
else cout<<"Fusu is angry!"<<endl;
}
}
return 0;
}