s,t = gets.chomp.split if (s == "Sat" || s == "Sun") if (t == "Sat" || t == "Sun") puts "8/33" else puts "8/32" end else puts "8/31" end