#include <iostream>
#include <stack>
using namespace std;
//Ejemplo 2
int main() {
stack <char> pila1;
char i;
for(i='a'; i<='z'; i++) pila1.push(i);
cout << pila1.size() << endl;
cout << pila1.top() << endl;
cout << pila1.empty() << endl;
while(!pila1.empty()){
cout << pila1.top() << " ";
pila1.pop();
}
cout << endl << pila1.empty();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RhY2s+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Ci8vRWplbXBsbyAyCmludCBtYWluKCkgewoJc3RhY2sgPGNoYXI+IHBpbGExOwoJY2hhciBpOwoJZm9yKGk9J2EnOyBpPD0neic7IGkrKykgcGlsYTEucHVzaChpKTsKCWNvdXQgPDwgcGlsYTEuc2l6ZSgpIDw8IGVuZGw7Cgljb3V0IDw8IHBpbGExLnRvcCgpIDw8IGVuZGw7Cgljb3V0IDw8IHBpbGExLmVtcHR5KCkgPDwgZW5kbDsKCXdoaWxlKCFwaWxhMS5lbXB0eSgpKXsKCQljb3V0IDw8IHBpbGExLnRvcCgpIDw8ICIgICI7CgkJcGlsYTEucG9wKCk7Cgl9Cgljb3V0IDw8IGVuZGwgPDwgcGlsYTEuZW1wdHkoKTsKCXJldHVybiAwOwp9