#36940: 簡易版


pharmacistlin858@gmail.com (Pharmacist Chen)


m,d = input("請輸入月,日,用逗點隔開").split(",")
month = int(m)
day = int(d)
result = (month*2+day)%3
if result ==0:
  print("普通")
elif result ==1:
  print("吉")
elif result ==2:
  print("大吉")