let content = '';
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', buf => {
  content += buf;
});
process.stdin.on('end', () => {
  const [, line] = content.trim().split('\n');
  console.log(line.split(' ').reverse().join(' '));
});

