public static void main(String[] args) {
	
		Scanner input = new Scanner(System.in);
		System.out.print("Enter number to count bits pairs: ");
		int num = input.nextInt();
		int onesPairs = countPairs(num);
		int numBitsInvert = invertBits(num);
		int zerosPairs = countPairs(numBitsInvert);
		System.out.println("Counted pairs are: "+ (onesPairs + zerosPairs));
	
	}