using System;
using System.Collections;
namespace Test
{
public class Program
public static void Main(string[] args)
long wynik = 0;
BitArray ba = new BitArray(BitConverter.GetBytes(wynik));
ba[0] = true;
ba[1] = true;
ba[2] = true;
ba[3] = true;
ba[4] = true;
ba[5] = true;
ba[6] = true;
ba[7] = false;
ba[8] = true;
byte[] res = new byte[(ba.Length + 7) / 8];
ba.CopyTo(res, 0);
wynik = BitConverter.ToInt64(res, 0);
Console.WriteLine(wynik);
}