#include<iostream>
using namespace std;

int main(){
  int m,d,i,j,r=0;
  cin>>m>>d;
  for(i=2;i<=d/10;i++){
    for(j=2;j<10;j++){
      if(i*10+j>d) break;
      if(j*i<=m) r++;
    }
  }
  cout<<r<<endl;
  return 0;
}
