input_lines = gets.chop.split.map(&:to_i)

count = 0
top = 0
second = 0
multiplication = 0 
for mon in 1...(input_lines[0] + 1) 
    for day in 20...(input_lines[1] + 1)

        top = day/10
        second = day%10
        if second < 2 
            next
        end
        multiplication = top * second
        if multiplication == mon 
            count = count + 1 
        end
    end 
end
puts count