import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); String s1 = sc.next(); String s2 = sc.next(); boolean result1 = (s1.equals("Sat") || s1.equals("Sun")); boolean result2 = (s2.equals("Sat") || s2.equals("Sun")); if (result1 && result2) { System.out.println("8/33"); } else if (result1) { System.out.println("8/32"); } else { System.out.println("8/31"); } } }