#include<bits/stdc++.h> using namespace std; const int N=1e2+5; int arr[N]; int main(){ int a,b,cnt=0; cin>>a>>b; for(int i=a;i<=b;i++){ int t=i,n=0; while(t){ n++; t/=10; } t=i; while(t){ arr[t%10]++; t/=10; } bool flag=true; for(int j=0;j<n;j++){ if(arr[j]==0){ flag=false; } arr[j]=0; } if(flag && i!=100){ cnt++; cout<<i<<' '; } } cout<<cnt; return 0; }