S, T = input().split() if sorted([S,T]) == sorted(["Sat","Sun"]): print("8/33") elif S == "Sun" or S == "Sat": print("8/32") else: print("8/31")