#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
stack<int>st;
st.push(5);
st.push(7);
st.push(0);
st.push(71);
st.push(51);
st.push(74);
st.push(50);
st.push(71);
while(!st.empty())
{
cout<<st.top()<<endl;
st.pop();
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCXN0YWNrPGludD5zdDsKCXN0LnB1c2goNSk7CglzdC5wdXNoKDcpOwoJCXN0LnB1c2goMCk7CglzdC5wdXNoKDcxKTsKCQlzdC5wdXNoKDUxKTsKCXN0LnB1c2goNzQpOwoJCXN0LnB1c2goNTApOwoJc3QucHVzaCg3MSk7Cgl3aGlsZSghc3QuZW1wdHkoKSkKCXsKCQljb3V0PDxzdC50b3AoKTw8ZW5kbDsKCQlzdC5wb3AoKTsKCQkKCQkKCX0KCXJldHVybiAwOwp9