public static void Main()
int n = int.Parse(Console.ReadLine());
int step = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++)
int number = int.Parse(Console.ReadLine());
string currSequence = null;
for (int pos = 0; pos < 8; pos++)
int lastBit = (number & (1 << pos)) >> pos;
currSequence = lastBit + currSequence;
char[] bits = new char[n * 8];
for (int i = 0; i < bits.Length; i++)
for (int i = 0; i < bits.Length; i++)
int position = 1 + step * i;
if (position >= bitNum.Length)
for (int i = 0; i < bits.Length; i++)
Console.WriteLine(Convert.ToUInt32(newBinNum, 2));