process.stdin.resume();
process.stdin.setEncoding('utf-8');
process.stdin.on('data', function(chunk) {
 
var line = chunk.split('\n').map(Number);
var i, xy;
for (i in lines){
if(xy[0] === 0 && xy[1] === 0){
 break;
}

console.log(xy[0],xy[1]);
}
 
 
});