static void Main(string[] args)
        {
            int number = int.Parse(Console.ReadLine());
            //ToBinary(decimalNumber);
            //Console.WriteLine(ToBinary(decimalNumber));
            //Console.WriteLine(IsPalindrome(ToBinary(decimalNumber)));
            //Console.WriteLine(SsA(ToBinary(decimalNumber)));
            Hack HackNumber = new Hack();

            HackNumber.IsHack(number);
            HackNumber.NextHack(number);
            Console.ReadLine();
        }
		static void Main(string[] args)
		{
			int number = int.Parse(Console.ReadLine());
			//ToBinary(decimalNumber);
			//Console.WriteLine(ToBinary(decimalNumber));
			//Console.WriteLine(IsPalindrome(ToBinary(decimalNumber)));
			//Console.WriteLine(SsA(ToBinary(decimalNumber)));
			Hack HackNumber = new Hack();
			HackNumber.IsHack(number);
			HackNumber.NextHack(number);
			Console.ReadLine();

		}