#include
#include
#include
#include
#include
using namespace std;
int main( ) {
list lstStr;
lstStr.push_back("AB");
lstStr.push_back("BA");
lstStr.push_back("AC");
lstStr.push_back("DXA");
lstStr.push_back("EE");
list::iterator p;
p = find(lstStr.begin( ), lstStr.end( ), "AB");
cout<<*p<