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