#include<iostream> using namespace std; int main(){ int a,b,f=0; cin>>a>>b; for(int i=a;i<=b;i++){ string c=""; int d=i,e=0; while(d){ c+=(d%10+'0'); d/=10; e++; } if(c[c.size()-1]=='0') continue; int g=1; for(int j=0;j<e;j++){ int whgj=1; for(int k=0;k<c.size();k++){ if(c[k]==j+'0') whgj=0; } if(whgj) g=0; } if(g) f++; } cout<<f; return 0; }