puts "8/3"+(1+gets.split.map{|s|["Sun","Sat"].include?(s)}.index(true)||0).to_s