using System.Collections.Generic;
public static Stack<int> MontaPilha() {
var pilha = new Stack<int>();
public static void Main() {
var pilha = MontaPilha();
foreach (int i in pilha) {
Console.WriteLine(pilha.Pop());
Console.WriteLine(pilha.Peek());
Console.WriteLine(pilha.Count);