import std.stdio, std.string, std.conv;
import std.math;

void main() {
    auto input = getStdin!(string[])[1..$];
 	input[0].split(" ").to!(int[]).reverse.to!(string[]).join(" ").writeln;
}

T getStdin(T)() {
    string[] cmd;
    string line;
    while ((line = chomp(stdin.readln())) != "") cmd ~= line;
    return to!(T)(cmd);
}