



'''simple docstring'''

def      __lowerCamelCase     (      lowerCAmelCase_  )			->      int:
		_a     :      Optional[int]        =							hex_num.strip()
		if not hex_num:
				raise ValueError('No value was passed to the function'  )

		_a     :      Dict        =							hex_num[0] == '-'
		if is_negative:
				_a     :      Optional[int]        =							hex_num[1:]

		try:
				_a     :      Optional[Any]        =							int(lowerCAmelCase_						,			16  )
		except ValueError:
				raise ValueError('Invalid value was passed to the function'  )

		_a     :      int        =							''
		while int_num > 0:
				_a     :      Union[str, Any]        =							str(int_num % 2  ) + bin_str
				int_num >>= 1

		return int(('-' + bin_str) if is_negative else bin_str  )


if __name__ == "__main__":
							import doctest

							doctest.testmod()









'''simple docstring'''

def      __lowerCamelCase     (      )			->      Tuple:
		for n in range(1						,			1000000  ):
				yield n * (n + 1) // 2



def      __lowerCamelCase     (      lowerCAmelCase_  )			->      List[Any]:
		_a     :      Any        =							1
		_a     :      Tuple        =							2
		while i * i <= n:
				_a     :      Tuple        =							0
				while n % i == 0:
						n //= i
						multiplicity += 1
				divisors_count *= multiplicity + 1
				i += 1
		if n > 1:
				divisors_count *= 2
		return divisors_count



def      __lowerCamelCase     (      )			->      str:
		return next(i for i in triangle_number_generator() if count_divisors(lowerCAmelCase_  ) > 500  )


if __name__ == "__main__":
							print(solution())




