(i)nsert#, (p)op, (q)uit: 1 (i)nsert#, (p)op, (q)uit: 2 1 (i)nsert#, (p)op, (q)uit: 3 2 1 (i)nsert#, (p)op, (q)uit: 4 3 2 1 (i)nsert#, (p)op, (q)uit: 3 2 1 (i)nsert#, (p)op, (q)uit: 2 1 (i)nsert#, (p)op, (q)uit: 1 (i)nsert#, (p)op, (q)uit: Empty stack. (i)nsert#, (p)op, (q)uit: pop from empty stack failed. (i)nsert#, (p)op, (q)uit: pop from empty stack failed. (i)nsert#, (p)op, (q)uit: pop from empty stack failed. (i)nsert#, (p)op, (q)uit: 4 (i)nsert#, (p)op, (q)uit: 5 4 (i)nsert#, (p)op, (q)uit: 6 5 4 (i)nsert#, (p)op, (q)uit: 7 6 5 4 (i)nsert#, (p)op, (q)uit: 6 5 4 (i)nsert#, (p)op, (q)uit: 5 4 (i)nsert#, (p)op, (q)uit: 4 (i)nsert#, (p)op, (q)uit: Empty stack. (i)nsert#, (p)op, (q)uit: