import java.util.*; class Main{ public static void main (String[] args) { Scanner s = new Scanner(System.in); String a =s.next(); String b =s.next(); String [] day = {"Mon","Tue","Wed","Thu","Fri","Sat","Sun"}; if(a.equals(day[5])||a.equals(day[6])){ if(b.equals(day[5])||b.equals(day[6])){ System.out.println("8/33"); }else{ System.out.println("8/32"); } } System.out.println("8/31"); } }