using System;
class HelloWorld
{
	static void Main()
	{
		string[,] sigma =
		{
			{"Andrejs Š", "Ēriks B", "Lana L"},
			{"Rolands Z", "Kirills T", "Tomass D"}
		};

		klasesSaraksts(sigma); //!
	}

	static void klasesSaraksts(string[,] sigma) //!
	{
		for (int r = 0 ; r < sigma.GetLength(0) ; r++)
		{
			Console.WriteLine($"Grupa {r+1}:");
			for (int k = 0 ; k < sigma.GetLength(1) ; k++)
			{
				Console.WriteLine(sigma[r,k]);
			}
			Console.WriteLine();
		}
	}
}