def main(): S1, S2 = input().split() if S1 not in ("Sat", "Sun"): print("8/31") return if S2 in ("Sat", "Sun"): print("8/33") else: print("8/32") if __name__ == "__main__": main()