object Main extends App{
  var Array(a,b) = readLine.split(" ").map(_.toInt)
  var sum = 0L
  if((b>21)&&(a>3)){
    for(i <- 22 to b if((i%10>1)&&(i/10>1))) {
      if(a >= (i/10) * (i%10)) {
        sum = sum + 1
      }
    }
  }
  print(sum)
}