2011-06-17 12:41:36Morris

[JAVA] a003. 兩光法師占卜術

/**********************************************************************************/
/*  Problem: a003 "兩光法師占卜術"                                         */
/*  Language: JAVA                                                                */
/*  Result: AC (104ms, 5642KB) on ZeroJudge                                       */
/*  Author: new1028 at 2011-06-17 08:48:36                                        */
/**********************************************************************************/


import java.util.Scanner;
public class s {
    public static void main(String args[]) {
        Scanner cin = new Scanner(System.in);
        int M, D, S;
        while(cin.hasNextInt()) {
            M = cin.nextInt();
            D = cin.nextInt();
            switch((M*2+D)%3) {
                case 0: System.out.println("普通");break;
                case 1: System.out.println("吉");break;
                default: System.out.println("大吉");break;
            }
        }
    }
}