using System.Collections;
public static int min = int.MaxValue;
public static void Main()
int[] arr = new int[]{18, 19, 29, 15, 16};
Program obj = new Program();
for (int i = 0; i < arr.Length; i++)
while (obj.stc.Count > 0)
int p = Convert.ToInt32(obj.stc.Peek());