public static void Main()
string s = Console.ReadLine();
string[] P = s.Split(' ');
F[i] = Convert.ToInt32(P[i]);
for (int i = 0;i<F[0];i++)
A[i] = Convert.ToInt32(Console.ReadLine());
int[] Livy = new int[F[0]/2];
int[] Prav = new int[F[0]/2+F[0]%2];
for (int j = 0;j<F[1];j++)
for (int i = 0;i<A.Length;i+=2)
for (int i = 1;i<A.Length;i+=2)
for (int i = 0;i<A.Length;i++)
if (i<Livy.Length) A[i] = Livy[i];
else A[i] = Prav[i-Livy.Length];
for (int i = 0;i<A.Length;i++)