


'''simple docstring'''






from __future__ import annotations


def  _snake_case       (					A			,   A	)						->   Tuple:
							lowerCAmelCase__	       =     []
							lowerCAmelCase__	       =     []
							lowerCAmelCase__	       =     0
							lowerCAmelCase__	       =     sum(lowerCamelCase__	)
							create_state_space_tree(lowerCamelCase__			,   lowerCamelCase__			,   lowerCamelCase__			,   lowerCamelCase__			,   lowerCamelCase__			,   lowerCamelCase__	)
							return result


def  _snake_case       (					A			,   A			,   A			,   A			,   A			,   A			,   )						->   Optional[int]:




							if sum(lowerCamelCase__	) > max_sum or (remaining_nums_sum + sum(lowerCamelCase__	)) < max_sum:
														return
							if sum(lowerCamelCase__	) == max_sum:
														result.append(lowerCamelCase__	)
														return
							for index in range(lowerCamelCase__			,   len(lowerCamelCase__	)	):
														create_state_space_tree(
														    lowerCamelCase__			,   lowerCamelCase__			,   index + 1			,   [*path, nums[index]]			,   lowerCamelCase__			,   remaining_nums_sum - nums[index]			,   )
__UpperCAmelCase       =							[3, 34, 4, 12, 5, 2]
__UpperCAmelCase       =							9
__UpperCAmelCase       =							generate_sum_of_subsets_soln(nums, max_sum)






print(*result)



'''simple docstring'''






from __future__ import annotations


def  _snake_case       (					A			,   A	)						->   float:
							lowerCAmelCase__	       =     sorted(numsa + numsa	)
							lowerCAmelCase__       , lowerCAmelCase__	       =     divmod(len(A	)			,   2	)
							if mod == 1:
														return all_numbers[div]
							else:
														return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		__UpperCAmelCase       =							[float(x) for x in input('''Enter the elements of first array: ''').split()]
		__UpperCAmelCase       =							[float(x) for x in input('''Enter the elements of second array: ''').split()]
		print(f"""The median of two arrays is: {median_of_two_arrays(array_a, array_a)}""")