#include <bits/stdc++.h>
//Defining our vector.
std::vector<char> idx;
int main(int argc, char* argv[]) {
//We will fill our vector with input from the user.
std::cout << "How many characters: ";
int a; std::cin >> a;
for(int i=0;i<a;i++) {
char temp;
std::cin >> temp;
idx.push_back(temp);
}
//Reversing.
reverse(idx.begin(), idx.end());
//Clearing the window first
system("clear");
//Print the reversed vector.
std::cout << "Reversed: [";
for(auto const& i: idx) {
if(i==idx.at(a-1)) std::cout << i;
else std::cout << i << ", ";
}
std::cout << "]\\";
return 0;
}