a,b = input().split() x = 31 if a == "Sat" or a == "Sun": x += 1 if b == "Sat" or b == "Sun": x += 1 print("8/"+str(x))