a,b = gets.chomp.split(" ").map(&:to_i) puts [23,24,25].select { |i| not (a..b).include?(i) }.length