@@ -0,0 +1,693 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    private static final int DAYS%5B%5D = %7B0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31%7D;%0A    private static final String WEEK_NAMES%5B%5D = %7B%22Wednesday%22, %22Thursday%22, %22Friday%22, %22Saturday%22, %22Sunday%22, %22Monday%22, %22Tuesday%22%7D;%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        while (true) %7B%0A%0A            int month = sc.nextInt();%0A            int day = sc.nextInt();%0A%0A            if (month == 0) %7B%0A                break;%0A            %7D%0A%0A            for (int i = 0; i %3C month; i++) %7B%0A                day += DAYS%5Bi%5D;%0A            %7D%0A%0A            System.out.println(WEEK_NAMES%5Bday %25 7%5D);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0027