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