#include <bits/stdc++.h> using namespace std; int main() { int a, b, h = 0; cin >> a >> b; for (int i = a;i <= b;i++) { int n = i, s = 0; while(n) { s ++; n /= 10; } cout << s; int c = i, z = 0; for (int i = 0;i <= c - 1;i++) { for (int j = 0;j <= s - 1;i ++) { if (c % 10 == j) { z ++; } } c /= 10; } if (z == s) h ++; } cout << h; return 0; }