#include <stdio.h>int main(){int m,d,s;scanf("%d %d",&m,&d);s = (m+m+d)%3;if(s==0)printf("普通\n");else if(s==1)printf("吉\n");else printf("大吉\n"); }