#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	while(cin>>a>>b)
	{
		cin>>a>>b;
		int c =7;
		for (int d =1000000;d>=0;d=d/10)
		{
			cout<<d<<endl;
			if((a+b)/d>=1)
		   {
			break;
		}
			else c=c-1;
			}
	}
}