#include <stdio.h>

struct box {
	unsigned char up :1 ;
	unsigned char down :1 ;
	unsigned char left :1 ;
	unsigned char right :1 ;
};

#define dprintf(arg1, ... ) printf( arg1, __VA_ARGS__)
//#define dprintf(arg1, ... ) 


void nextpos( char** ppos ) {
	*ppos = strchr( *ppos, ' ' );
	if ( *ppos == NULL ) { return; }
	**ppos = '\0';
	(*ppos)++;
	return;
}

int main(void) {
	
	char format0[256] = "", format1[256] = " ";
	
	
	while(1) {
		int width, height;
		scanf("%d %d\n", &width, &height);
		if ( width == 0 && height == 0 ) { break; }
		
		struct box test[30][30];
		
		int temp[width];
		for ( int loo=0; loo< (height*2 - 1); loo++ ) {
			if ( loo % 2 == 1 ) {
				
			} else {
				
			}
		}
		
	}
	return 0;
}