using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Whatever
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string[,] sigma =
            {
                {"Andrejs Š", "Rolands Z", "Edgars S" },
                {"Ēriks B", "Kirills T", "Tomass T" },
            };
            KlasesSaraksts(sigma);
        }

        public static void KlasesSaraksts(string[,] sigma) // <- parametra definēšana
        {
            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]);
                }
            }
        }
    }
}