#include<iostream>
//#include<stack>
using namespace std;
#include<string>
template<typename T>
class Stack{
	private:
		T data;
	public:
		Stack(){}
		~Stack(){}
		public:
		void push(T a){
			data=a;
		}
		T pop(){
			return data;
		}
};
int main(void){
//	Stack<string> s1;
//	string s(100,'a');
//	s1.push(s);
//	cout<<s1.pop()<<endl;
//	s1.~Stack();
	Stack<int> s2;
	while(1)
	{
		int tmp=-2147;
		tmp++;
		int i=27;
		s2.push(i);
		cout<<s2.pop()<<endl;
		if(tmp>=10)break;
	}
	s2.~Stack();
	return 0;
}