day = input().strip().split(" ") if "Sun" in day and "Sat" in day: print("8/33") elif day[0] == day[1]: if day[0] == "Sun" or day[0] == "Sat": print("8/33") else: print("8/31") elif "Sun" == day[0] or "Sat" == day[0]: print("8/32") else: print("8/31")