using System;
using System.Collections;

namespace P7_4
{
    class Program
    {
        static void Main()
        {
            int bits;
            string[] binNumber = new string[8];
            int binary;
            byte[] ByteSet = new byte[] { 3,2,1 };
            BitArray BitSet = new BitArray(ByteSet);
            bits = 0;
            binary = 7;
            for (int i = 0; i <= BitSet.Count - 1; i++)
            {
                if (BitSet.Get(i) == true)
                    	    binNumber[binary] = "1";
                else
                    	    binNumber[binary] = "0";
                bits++;
                binary--;
                if ((bits % 8) == 0)
                {
                    binary = 7;
                    bits = 0;
                    for (int j = 0; j <= 7; j++)
                            Console.Write(binNumber[j]);
                    Console.WriteLine();
                }
            }
             Console.ReadLine();
        }
    }
}
