#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int x,y; cin>>x>>y; string z; for(int i=1;i<=x;i++){ string s=to_string(i); z=z+s; }cout<<count(z.begin(),z.end(),y+'0'); }```