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

void main() {
    int n = readln.chomp.to!int;
    int[] a = readln.chomp.split.to!(int[]);
    foreach_reverse (i; 0 .. n) {
        a[i].write;
        if (i != 0) " ".write;
        else writeln;
    }
}
