S1, S2 = map(str, input().split()) if (S1 == "Sun" or S1 == "Sat") and (S2 == "Sun" or S2 == "Sat"): print("8/33") elif (S1 == "Sun" or S1 == "Sat") and (S2 != "Sun" or S2 != "Sat"): print("8/32") else: print("8/31")