#include <iostream>
using namespace std;
int main() {
int month,day;
cin>>month>>day;
int S = (month*2+ day) % 3;
if(S == 0){
cout << "普通" << endl;
} else if (S == 1){
cout<<"吉"<<endl;
} else if (S == 2){
cout<<"大吉"<<endl;
}
return 0;
}