using System;
using System.Collections.Generic;

namespace StackAndQueue2
{
    class Program
    {
        static void Main(string[] args)
        {

            Stack<string> myStack = new Stack<string>();
            myStack.Push("pierwszy");
            myStack.Push("drugi");
            myStack.Push("trzeci");
            myStack.Push("ostatni");

            Queue<string> myQueue = new Queue<string>(myStack);
            List<string> myList = new List<string>(myQueue);
            Stack<string> anotherStack = new Stack<string>(myList);

            Console.WriteLine($@"myQueue zawiera {myQueue.Count} elementy.
myList zawiera {myList.Count} elementy.
anotherStack zawiera {anotherStack.Count} elementy.");
        }
    }
}
