#include <iostream>
#include <deque>
using namespace std;

int main()
{
    deque<int> deqExample;							// deque container for floating-point elements

    // insert elements at the front
    for (int i = 1; i <= 6; i++) 
	{
        deqExample.push_front(rand() % 100 + 1);      // insert at the front
    }

    // print all elements followed by a space
    for (int i = 0; i < deqExample.size(); ++i) 
	{
        cout << deqExample[i] << ' ';
    }

    cout << endl;
}
