tmp = require("fs").readFileSync("/dev/stdin","utf8").trim();
let m = tmp.split(" ")[0];
let d = tmp.split(" ")[1];
cnt = 0;
for (i=1;i<=m;i++){
  for (j=1;j<=d;j++){
    if (parseInt(j/10)*(j%10)==i && j%10>=2 && parseInt(j/10)>=2){
      cnt+=1;
    }
  }
}
console.log(cnt);