#include <iostream>
#include <list>
using namespace std;
typedef list<int> IntegerList;
int main()
{
IntegerList intList;
for (int i=1; i<=10; ++i)
intList.push_back(i * 2);
for (int i : intList)
cout << i << " ";
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bGlzdD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnR5cGVkZWYgbGlzdDxpbnQ+IEludGVnZXJMaXN0OwoKaW50IG1haW4oKQp7CiAgICBJbnRlZ2VyTGlzdCBpbnRMaXN0OwogICAgZm9yIChpbnQgaT0xOyBpPD0xMDsgKytpKQogICAgICAgIGludExpc3QucHVzaF9iYWNrKGkgKiAyKTsKICAgIGZvciAoaW50IGkgOiBpbnRMaXN0KQogICAgICAgIGNvdXQgPDwgaSA8PCAiICI7Cn0K