A, B = input().split() S = ["Sat", "Sun"] ans = 31 if A in S: ans += 1 if B in S: ans += 1 print("8/" + str(ans))