#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(void) {
vector<int>var;
for(int x=1;x<=10;x++) var.push_back(x);
cout << "Forward:";
vector<int>::iterator lol;
for(lol=var.begin();lol<var.end();lol++) cout << " " << *lol;
cout << "\nReverse:";
vector<int>::reverse_iterator x;
for(x=var.rbegin();x<var.rend();x++) cout << " " << *x;
return 0;
}