line = gets.split(" ").map{|i| i.to_i} count = 0 unless (line[0]..line[1]).include?(23) count+=1 end unless (line[0]..line[1]).include?(24) count+=1 end unless (line[0]..line[1]).include?(25) count+=1 end puts count