using System;
public class Program
{
public static void Main()
int n = 37;
Console.WriteLine(Convert.ToString(37, toBase: 2));
Console.WriteLine(~n & (n + 1));
Console.WriteLine(~(~(~n - (~n & (n + 1)))) & ((~(~n - (~n & (n + 1)))) + 1));
}