#include <iostream>
#include <cmath>
#include <stack>
#include <queue>
using namespace std;
 
int main()
{
    ios_base::sync_with_stdio(false);
    stack<int> s;
    s.push(1);
    s.push(2);
    s.push(3);
    
    s.push(4);
    s.push(5);
    s.push(6);
    s.push(7);
    while(!s.empty()) {
        cout << s.top() << endl;
        s.pop();
    }
    return 0;
}
