def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							snake_case_    ,   snake_case_          =   [], []
							while len(UpperCamelCase__				) > 1:
														snake_case_    ,   snake_case_          =   min(UpperCamelCase__				), max(UpperCamelCase__				)
														start.append(UpperCamelCase__				)
														end.append(UpperCamelCase__				)
														collection.remove(UpperCamelCase__				)
														collection.remove(UpperCamelCase__				)
							end.reverse()
							return start + collection + end


if __name__ == "__main__":
					_UpperCAmelCase		:       List[str]						    =	input("""Enter numbers separated by a comma:\n""").strip()
					_UpperCAmelCase		:       Any						    =	[int(item) for item in user_input.split(""",""")]
					print(*merge_sort(unsorted), sep=""",""")







def  __lowerCamelCase     (			UpperCamelCase__       ,							UpperCamelCase__				):







							'''simple docstring'''






							return int((input_a, input_a).count(0				) != 0				)





def  __lowerCamelCase     (			):







							'''simple docstring'''






							assert nand_gate(0       ,							0				) == 1
							assert nand_gate(0       ,							1				) == 1
							assert nand_gate(1       ,							0				) == 1
							assert nand_gate(1       ,							1				) == 0


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




