#include<bits/stdc++.h>
using namespace std;

int f1(int n)
{
	int s=0;
	while(n>0)
	{
		s+=n%10;
		n/=10;
	}
	return s;
}

int f2(int n)
{
	int s1=0,s2=0;
	while(n>0)
	{
		if(s1==n%10) s2++;
	}
	return s2;
}

int f3(int n)
{
	int s=0;
	while(n>0)
	{
		s++;
		n/=10;
	}
	return s;
}

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int a,b,s=0;
	cin>>a>>b;
	for(int i=a;i<=b;++i){
		if(f3(i)==2 && f1(i)==1){
			s++;
		}
		if(f3(i)==3 && f1(i)==3){
			s++;
			cout<<i<<" ";
		}
		if(f3(i)==4 && f1(i)==6){
			s++;
		}
		if(f3(i)==5 && f1(i)==10){
			s++;
		}
		if(f3(i)==6 && f1(i)==15){
			s++;
		}
		if(f3(i)==7 && f1(i)==21){
			s++;
		}
	}
	cout<<fixed<<setprecision(1)<<s;
	return 0;
}