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