#include<list>
#include<iostream>
#include<estdlib>
using namespace std;
void main()
{
list<int>l1;
l1.push_back(5);
l1.push_back(10);
l1.push_back(15);
l1.push_back(20);
l1.push_back(25);
l1.push_back(30);
l1.remove(15);
l1.reverse();
cout<<"Elements of the list after reversing the list\n";
while(l1size()>0)
{
int value = l1.front();
cout<<value<<endl;
l1.pop_front();
}
}