





'''simple docstring'''




def 		__A		(  lowerCamelCase_	):


		"""simple docstring"""



		if not isinstance(lowerCamelCase_			,			lowerCamelCase_	):
				raise TypeError("""only integers accepted as input"""	)
		else:
				SCREAMING_SNAKE_CASE :				Any		=			str(abs(lowerCamelCase_	)	)
				SCREAMING_SNAKE_CASE :				Any		=			[list(lowerCamelCase_	) for char in range(len(lowerCamelCase_	)	)]
				for index in range(len(lowerCamelCase_	)	):
						num_transpositions[index].pop(lowerCamelCase_	)
				return max(
				    int("""""".join(list(lowerCamelCase_	)	)	) for transposition in num_transpositions	)


if __name__ == "__main__":
							__import__("""doctest""").testmod()










'''simple docstring'''




from __future__ import annotations



def 		__A		(  lowerCamelCase_			,			lowerCamelCase_	):


		"""simple docstring"""



		if partitions <= 0:
				raise ValueError("""partitions must be a positive number!"""	)
		if partitions > number_of_bytes:
				raise ValueError("""partitions can not > number_of_bytes!"""	)
		SCREAMING_SNAKE_CASE :				int		=			number_of_bytes // partitions
		SCREAMING_SNAKE_CASE :				int		=			[]
		for i in range(lowerCamelCase_	):
				SCREAMING_SNAKE_CASE :				Optional[Any]		=			i * bytes_per_partition + 1
				SCREAMING_SNAKE_CASE :				Optional[int]		=			(
				    number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
				)
				allocation_list.append(f'''{start_bytes}-{end_bytes}'''	)
		return allocation_list


if __name__ == "__main__":
							import doctest

							doctest.testmod()



