s,t = input().split() U = {"Sun","Sat"} ans = "8/31" if s in U: ans = "8/32" if s in U and t in U: ans = "8/33" print(ans)