'''simple docstring'''

def 							UpperCamelCase__			(			a__      ):


						'''simple docstring'''






						return "".join([hex(a__      )[2:].zfill(2      ).upper() for byte in list(a__      )]      )



def 							UpperCamelCase__			(			a__      ):


						'''simple docstring'''






						if (len(a__      ) % 2) != 0:
												raise ValueError(
												    'Base16 encoded data is invalid:\nData does not have an even number of hex digits.'      )
						# Check the character set - the standard base16 alphabet
						# is uppercase according to RFC3548 section 6
						if not set(a__      ) <= set('0123456789ABCDEF'      ):
												raise ValueError(
												    'Base16 encoded data is invalid:\nData is not uppercase hex or it contains invalid characters.'      )
						# For every two hexadecimal digits (= a byte), turn it into an integer.
						# Then, string the result together into bytes, and return it.
						return bytes(int(data[i] + data[i + 1]			,      1_6      ) for i in range(0			,      len(a__      )			,      2      )      )


if __name__ == "__main__":
							import doctest

							doctest.testmod()






'''simple docstring'''

from __future__ import annotations

lowercase_     		= 10



def 							UpperCamelCase__			(			a__      ):


						'''simple docstring'''






						_lowerCAmelCase										=1
						_lowerCAmelCase										=max(a__      )
						while placement <= max_digit:
												# declare and initialize empty buckets
												_lowerCAmelCase										=[[] for _ in range(a__      )]
												# split list_of_ints between the buckets
												for i in list_of_ints:
																		_lowerCAmelCase										=int((i / placement) % RADIX      )
																		buckets[tmp].append(a__      )
												# put each buckets' contents into list_of_ints
												_lowerCAmelCase										=0
												for b in range(a__      ):
																		for i in buckets[b]:
																								_lowerCAmelCase										=i
																								a += 1
        # move to next
												placement *= RADIX
						return list_of_ints


if __name__ == "__main__":
							import doctest

							doctest.testmod()





