#include <iostream>
using namespace std;
int main(){
int M;
int D;
int S=(M*2+D)%3;
while(cin >> M >> D ){
if(S==0){
cout << "普通" <<endl;
}
else if(S==1){
cout << "吉" <<endl;
}
else{
cout << "大吉" <<endl;
}
}
}
#include
using namespace std;
int main(){
int M;
int D;
int S=(M*2+D)%3;
while(cin >> M >> D ){
if(S==0){
cout << "普通" <<endl;
}
else if(S==1){
cout << "吉" <<endl;
}
else{
cout << "大吉" <<endl;
}
}
}
因為每次輸入的日期不同,S要重新計算