#includeint 培岁圆main(){int i,j,n,x,k=0;char 雀喊*a;scanf("%d%d",&n,&x);for(i=1;i<=n;i++)for(j=i;j;j/=10)if(j%10==x)k++;printf("配塌%d\n",k);return 0; }