
"""simple docstring"""




import random

def lowercase_						(     _snake_case     ,_snake_case     ,_snake_case		):
							SCREAMING_SNAKE_CASE__		: List[str]     =     a[left_index]
							SCREAMING_SNAKE_CASE__		: List[str]     =     left_index + 1
							for j in range(left_index + 1     ,_snake_case		):
														if a[j] < pivot:
																					SCREAMING_SNAKE_CASE__   ,   SCREAMING_SNAKE_CASE__		: Union[str, Any]     =     a[i], a[j]
																					i += 1
							SCREAMING_SNAKE_CASE__   ,   SCREAMING_SNAKE_CASE__		: str     =     a[i - 1], a[left_index]
							return i - 1

def lowercase_						(     _snake_case     ,_snake_case     ,_snake_case		):
							if left < right:
														SCREAMING_SNAKE_CASE__		: str     =     random.randint(_snake_case     ,right - 1		)
														SCREAMING_SNAKE_CASE__   ,   SCREAMING_SNAKE_CASE__		: Optional[Any]     =     (
														    a[left],
														    a[pivot],
														)  # switches the pivot with the left most bound
														SCREAMING_SNAKE_CASE__		: Any     =     partition(_snake_case     ,_snake_case     ,_snake_case		)
														quick_sort_random(
														    _snake_case     ,_snake_case     ,_snake_case		)  # recursive quicksort to the left of the pivot point
														quick_sort_random(
														    _snake_case     ,pivot_index + 1     ,_snake_case		)  # recursive quicksort to the right of the pivot point

def lowercase_						(     ):
							SCREAMING_SNAKE_CASE__		: List[Any]     =     input("""Enter numbers separated by a comma:\n"""		).strip()
							SCREAMING_SNAKE_CASE__		: Union[str, Any]     =     [int(_snake_case		) for item in user_input.split(""","""		)]

							quick_sort_random(_snake_case     ,0     ,len(_snake_case		)		)

							print(_snake_case		)


if __name__ == "__main__":
					main()






"""simple docstring"""




def lowercase_						(     _snake_case     ,_snake_case		):
							return int((input_a, input_a).count(1		) != 0		)

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


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




