process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on('data', function (chunk) {

 var line = chunk.split(' ');
 var arr = line[1];

for (var i = 0; i < arr; i++){
 console.log(arr.reverse);
} 
 
    
});