#include <iostream>
#include <list>
int main()
{
std::list<char> lst;
for (char ch = 'a'; ch <= 'z'; ch++) {
lst.push_back(ch);
}
// print and remove the first element
while (!lst.empty()) {
std::cout << lst.front() << ' ';
lst.pop_front();
}
std::cout << std::endl;
return 0;
}
/*
run:
a b c d e f g h i j k l m n o p q r s t u v w x y z
*/