using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{ Stack<int> s = new Stack<int> ();
Random x = new Random();
for (int i =0;i<5;i++){
s.Push (x.Next(10));}
s.Pop();
foreach (int c in s) {
Console.WriteLine(c);
}
Console.WriteLine("This vaule was removed:" +s.Pop());