*s,=input().split() q=['Sat','Sun'] k=2 if s[0] in q and s[1] in q else 1 if s[0] in q else 0 print(['8/31','8/32','8/33'][(s[0] in q) + (s[0] in q)])