#include <bits/stdc++.h>
using namespace std;
void display(list<int> &lst){
list<int> :: iterator it;
for(it = lst.begin(); it != lst.end(); it++){
cout<<*it<<" ";
}
}
int main(){
list<int> list1;
int data, size;
cout<<"Enter the list Size ";
cin>>size;
for(int i = 0; i<size; i++){
cout<<"Enter the element of the list ";
cin>>data;
list1.push_back(data);
}
cout<<endl;
display(list1);
return 0;
}