m,d = gets.split.map(&:to_i)
ans = []
m.times do |v|
	v = v+1
	d.times do |w|
		w = w +1
		if w  >=10
			w = w.to_s.split("").map(&:to_i)
		else
			w = "0" + w.to_s
			w = w.to_s.split("").map(&:to_i)
		end
		if w[0] >= 2 && w[1] >= 2 && w[0] * w[1] == v
			ans.push(1)
		end
	end
end
p ans.count

