#include <iostream>
using namespace std;

int main() {
    int n;
    cout<<"Enter the number of the songs: "<<endl;
    cin>>n;
    int *id= new int[n];
    int *revId = new int[n];
    cout<<"Enter the Id of each song: " << endl;
    for(int i=0;i<n;i++){
    	cin>>id[i];
    }
    for(int i=n-1,j=0; j<n ; i--,j++){
    	revId[j]=id[i];
    }
    cout<< "the updated version is: ";
    for (int i=0 ; i<n;i++){
    	cout<<revId[i]<<" ";
    }
   
	return 0;
}