S1, S2 = input().split() ans = "8/31" if S1 in ["Sat", "Sun"]: if S2 in ["Sat", "Sun"]: ans = "8/33" else: ans = "8/32" print(ans)