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