a, b = gets.chomp.split def f(a) a == "Sat" || a == "Sun" end if f(a) && f(b) puts "8/33" elsif f(a) puts "8/32" else puts "8/31" end