s,t = map(str,input().split()) if s not in ["Sat", "Sun"] : ans = "8/31" elif s == "Sat" and t == "Sun" : ans = "8/33" else : ans = "8/32" print(ans)