#include <iostream>
using namespace std;

int main(){
	int m,d;
	cin>>m>>d;
	int c=0,x,y;
	for(int i=1;i<=d;i++){
		x=i/10;
		y=i%10;
		if(x>=2 && y>=2){
			if(x*y<=m) c++;
		}
	}
	cout<<c<<"\n";
	return 0;
}