#include<bits/stdc++.h> using namespace std; bool f(int n){ while(n!=0){ if(n%10/100!=0){ return 1; }else{ return 0; } return 1; } } bool l(int n){ int s=0; while(n!=0){ s=s*!0+n%10; } s++; } int a,b,cnt=0; int main(){ cin>>a>>b; for(int i=a;i<b;i++){ if(l(i)){ cnt++; } } cout<<cnt; }