a = input().split() print("8/", end="") d = 31 if a[0] == "Sun" or a[0] == "Sat": d += 1 if a[1] == "Sun" or a[1] == "Sat": d += 1 print(d)