#include<iostream>#include<string>int main(){ int M,D; std::cin>>M>>D; std::string ptr[3]={"普通","吉","大吉"}; std::cout<<ptr[(M*2+D)%3]; return 0;}