"""simple docstring"""







def   __UpperCAmelCase				(    UpperCAmelCase_    :				Dict  )							->			Optional[int]:

	'''simple docstring'''





	if a < 0:
		raise ValueError('Input value must be a positive integer'  )
	elif isinstance(_snake_case			,							_snake_case  ):
		raise TypeError('Input value must be a \'int\' type'  )
	return bin(_snake_case  ).count('1'  )


if __name__ == "__main__":
	import doctest

	doctest.testmod()







"""simple docstring"""




def lowercase_  (   _snake_case   ,_snake_case						):
							return 1 if input_a == input_a else 0

def lowercase_  (   ):
							assert xnor_gate(0   ,0						) == 1
							assert xnor_gate(0   ,1						) == 0
							assert xnor_gate(1   ,0						) == 0
							assert xnor_gate(1   ,1						) == 1


if __name__ == "__main__":
					print(xnor_gate(0, 0))
					print(xnor_gate(0, 1))
					print(xnor_gate(1, 0))
					print(xnor_gate(1, 1))




