#include<iostream>
#include<deque>
using namespace std;
int main () {
	int m,d,k1,k2,count=0;
	cin>>m>>d;
	for (int i=22;i<=d;i++) {
		k1=i%10;k2=i/10;
		if (k1>=2&&k2>=2) {
			if (k1*k2<=m) count++;
		}
	}
	cout<<count<<endl;
}