#include <iostream>
#include <queue>
using namespace std;
//Ejemplo 2
int main() {
queue <char> cola1;
char i;
for(i='a'; i<='z'; i++) cola1.push(i);
cout << cola1.size() << endl;
cout << cola1.front() << " " << cola1.back() << endl;
cout << cola1.empty() << endl;
while(!cola1.empty()){
cout << cola1.front() << " ";
cola1.pop();
}
cout << endl << cola1.empty();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8cXVldWU+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Ci8vRWplbXBsbyAyCmludCBtYWluKCkgewoJcXVldWUgPGNoYXI+IGNvbGExOwoJY2hhciBpOwoJZm9yKGk9J2EnOyBpPD0neic7IGkrKykgY29sYTEucHVzaChpKTsKCWNvdXQgPDwgY29sYTEuc2l6ZSgpIDw8IGVuZGw7Cgljb3V0IDw8IGNvbGExLmZyb250KCkgPDwgIiAgIiA8PCBjb2xhMS5iYWNrKCkgPDwgZW5kbDsKCWNvdXQgPDwgY29sYTEuZW1wdHkoKSA8PCBlbmRsOwoJd2hpbGUoIWNvbGExLmVtcHR5KCkpewoJCWNvdXQgPDwgY29sYTEuZnJvbnQoKSA8PCAiICAiOwoJCWNvbGExLnBvcCgpOwoJfQoJY291dCA8PCBlbmRsIDw8IGNvbGExLmVtcHR5KCk7CglyZXR1cm4gMDsKfQ==