#include<bits/stdc++.h>
using namespace std;

int main()
{
	int m,d,count=0,i,j;
	cin>>m>>d;
	if(d<22 || m<=3)
	{
	
	cout<<"0";
	return 0;
}
for(i=22;i<=d;i++)
{
	if((i%10)<2 || (i/10)<2)
	continue;
	else if((i%10)*(i/10)<=m)
	count++;
}
cout<<count;
	
	
	
}