def Check(n) return n=="Sat"||n=="Sun" end s,t=gets.split.map(&:to_s) if(Check(s)&&Check(t)) puts "8/33" elsif (Check(s)) puts "8/32" else puts "8/31" end