m,d = gets.chomp.split(" ").map(&:to_i)
cnt = 0
for i in 1..m do
  for j in 20..d do
    zzz= j/10
    yyy= j%10
    next unless 2 <= yyy
    if i == zzz*yyy
      #print "i=",i,"\n"                                                                 
      #print "zzz=",zzz,"\n"                                                             
      #print "yyy=",yyy,"\n"                                                             
      cnt+=1
    end
  end
end
print cnt,"\n"
