s,t = input().split() print("8/33" if {s,t} <= {"Sat","Sun"} else "8/32" if s == "Sat" or s=="Sun" else "8/31")