s1,s2 = map(str,input().split()) ans = 31 if s1 == "Sun" or s1 == "Sat": ans += 1 if s2 == "Sun" or s2 == "Sat": ans += 1 print("8/" + str(ans))