f = readline.split(" ")
M = f[0].to_i
N = f[1].to_i


i = 22
j = 4
ans = 0

while j < M+1 
  while i < N+1
    D = i.to_s.split("")
    d_1 = D[0].to_i
    d_2 = D[1].to_i

    if j == d_1 * d_2
      ans += 1
    end
    i +=1
    
  end
  i = 22
  j += 1
end

puts ans