#include<stdio.h>
int main()
{
int arr[25][100]= {};
int a, b;
int i, j;
int n = 1,t;
int count = 0;
scanf("%d %d", &a, &b);
arr[1][1]=1;
for(i=1; i<=b; i++)
{
t = 1;
for(j=1; arr[i][j]!=0; j++)
{
if(arr[i][j]==arr[i][j+1])
{
count++;
}
else
{
arr[i+1][t]=arr[i][j];
arr[i+1][t+1]=count;
count=1;
t+=2;
}
}
}
for(i=a; i<=b; i++)
{
for(j=1; arr[i][j]!=0; j++)
{
printf("%d ",arr[i][j]);
}
printf("\n");
}
}