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
    Z = i.to_s
    D = Z.split("")
    d_1 = D[0].to_i
    d_2 = D[1].to_i
    if   d_1 != 0 
      if d_2 != 0
        if d_1 != 1
          if d_2 != 1
            if j == d_1 * d_2
               ans += 1
    end
          end
        end
      end
    end
            
    i +=1
  end
  i = 22
  j += 1
end

puts ans