#include <list>
#include <iostream.h>

typedef int mytype;

int main()
{

  typedef list<mytype>::const_iterator mytypeCItor;
  typedef list<mytype>::iterator mytypeItor;
  
  list<mytype> l;

  mytypeCItor j;
  mytypeItor i;

  l.push_front(1);
  l.push_back(2);
  l.push_back(3);

  for (i=l.begin(); i!=l.end(); i++)
    *i = *i + 1;

  for (j=l.begin(); j!=l.end(); j++)
    cout << *j << endl;

  return 0;
}

