using System;

class HelloWorld
{
    static void Main(string[] args)
    {
        string[,] sigma =
        {
            { "Andrejs S", "Rolands Z", "Edgars S" },
            { "Eriks B", "Kirills T", "Tomass D" }
        };
        Klasessaraksts(sigma);
    }
    public static void Klasessaraksts(string[,] sigma)
    {

        for (int i = 0; i < sigma.GetLength(0); i++)
        {
            Console.WriteLine($"Grupa {i + 1}:");

            for (int j = 0; j < sigma.GetLength(1); j++)
            {
                Console.WriteLine("  " + sigma[i, j]);
            }

        }
    }
}
