// stack1.cpp: Using a stack to read a number of sequence of 
// arbitray length and to display this sequence
// in the reverse order

#include <iostream>
#include <vector>
#include <stack>
using namespace std;

int main() {
 vector<int> v(5);
 stack <int, vector<int> > S;
 int x;
 cout << "Enter some integers followed by a letter:\n";
 while(cin >> x) S.push(x);
 while(!S.empty()) {
  x = S.top();
  cout << "Sixe: " << S.size() << "   Element at the top: " << x << endl;
  S.pop();
 }
return 0;
} 

