



"""simple docstring"""

def       __magic_name__    (   _lowerCamelCase				: Union[str, Any]  ,       _lowerCamelCase				: Union[str, Any]					):
							__a		:		Dict									=       0
							while b > 0:
														if b & 1:
																					res += a

														a += a
														b >>= 1

							return res





def       __magic_name__    (   _lowerCamelCase				: List[str]  ,       _lowerCamelCase				: Tuple  ,       _lowerCamelCase				: Optional[int]					):
							__a		:		Optional[int]									=       0
							while b > 0:
														if b & 1:
																					__a		:		int									=       ((res % c) + (a % c)) % c

														a += a
														b >>= 1

							return res






"""simple docstring"""

def       __magic_name__    (   _lowerCamelCase				: list[int]					):
							if not nums:  # Makes sure that the list is not empty
														raise ValueError("""List is empty"""					)

							__a		:		Any									=       sum(_lowerCamelCase					) / len(_lowerCamelCase					)  # Calculate the average
							return sum(abs(x - average					) for x in nums					) / len(_lowerCamelCase					)


if __name__ == "__main__":
	import doctest

	doctest.testmod()

