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

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

 var line = chunk.split('\n');
 var a = line[1].split(' ');

 console.log(a.reverse.join(' '));
} 
 
    
});