#include <bits/stdc++.h> using namespace std; #define int long long string s; int a,b,l,ans; bool an; signed main(){ ios::sync_with_stdio(false); cin.tie(0),cout.tie(0); cin >> a >> b; for(int i = a;i <= b;i++){ s = to_string(i); l = s.size(); an = true; for(int j = 0;j <= l - 1;j++){ if(s.find(to_string(j)) == string::npos){ an = false; break; } } if(an == true){ ans++; } } cout << ans << endl; return 0; }