public void Print( Stack<string> stack ) { string second = stack.Pop(); stack.Push( stack.Pop() + "^" + second ); }