first, second = input().split() if (first == "Sun" or first == "Sat") and (second != "Sat" and second != "Sun"): print("8/32") elif (first == "Sun" or first == "Sat") and (second == "Sat" or second == "Sun"): print("8/33") else: print("8/31")