a, b = gets.split.map(&:to_i) ans = 0 23.upto(25) do |i| if i < a || i > b ans += 1 end end p ans