#include <iostream.h>
#include "cons.C"

main()
{
  consCell* l=NULL;
  int i;

  cout << "Enter number: ";
  cin >> i;
  while (cin) {
    l=new consCell(i,l);
    cout << "Enter number: ";
    cin >> i;
  }

  while (l) {
    cout << l->car() << " ";
    l = l->cdr();
  }
  cout << endl << endl;

}

