a, b = input().split() if a in ["Sat", "Sun"] and b not in ["Sat", "Sun"]: print("8/32") elif a in ["Sat", "Sun"] and b in ["Sat", "Sun"]: print("8/33") else: print("8/31")