combo = 0 ss = list(input().split()) for s in ss: if s == "Sun" or s == "Sat": combo += 1 if combo == 0: break print("8/" + str(31 + combo))