public void Pop() { int d = stacks[stacks.Count - 1].Pop(); if (stacks.Count == 0) { stacks.Pop(); } return(d); }