int main() {
    SetOfStacks test;
    for(int i=1; i<=3*MAX; ++i) test.push(i);
    for (int i=0; i<MAX; ++i) {
        test.popAt(0);
        test.popAt(1);
    }
    test.popAt(3);
    while (!test.isEmpty()) {
        cout<<test.top()<<endl;
        test.pop();
    }
}
int main(){
	Stack.push(5);
	Stack.push(2);
	Stack.push(3);
	Stack.push(7);
	Stack.pop();
	Stack.pop();
	Stack.pop();
	Stack.push(10);
	cout << Stack.top() << endl;
	system("pause");
	return 0;
	
}