





"""simple docstring"""




from __future__ import annotations




def _a (  SCREAMING_SNAKE_CASE__      :  list[int]       )	->    list[int]:  # This function is recursive

							'''simple docstring'''






							SCREAMING_SNAKE_CASE__       :      int     =						len(SCREAMING_SNAKE_CASE__       )
							# If the array contains only one element, we return it (it's the stop condition of
							# recursion)
							if array_length <= 1:
														return array
														# Else
							SCREAMING_SNAKE_CASE__       :      Union[str, Any]     =						array[0]
							SCREAMING_SNAKE_CASE__       :      List[Any]     =						False
							SCREAMING_SNAKE_CASE__       :      Optional[int]     =						1
							SCREAMING_SNAKE_CASE__       :      list[int]     =						[]
							while not is_found and i < array_length:
														if array[i] < pivot:
																					SCREAMING_SNAKE_CASE__       :      Optional[Any]     =						True
																					SCREAMING_SNAKE_CASE__       :      Optional[Any]     =						[element for element in array[i:] if element >= array[i]]
																					SCREAMING_SNAKE_CASE__       :      List[Any]     =						longest_subsequence(SCREAMING_SNAKE_CASE__       )
																					if len(SCREAMING_SNAKE_CASE__       ) > len(SCREAMING_SNAKE_CASE__       ):
																												SCREAMING_SNAKE_CASE__       :      int     =						temp_array
														else:
																					i += 1

							SCREAMING_SNAKE_CASE__       :      Any     =						[element for element in array[1:] if element >= pivot]
							SCREAMING_SNAKE_CASE__       :      str     =						[pivot, *longest_subsequence(SCREAMING_SNAKE_CASE__       )]
							if len(SCREAMING_SNAKE_CASE__       ) > len(SCREAMING_SNAKE_CASE__       ):
														return temp_array
							else:
														return longest_subseq


if __name__ == "__main__":
		import doctest

		doctest.testmod()













from __future__ import annotations




def _a (  SCREAMING_SNAKE_CASE__      :  list[float]			,				SCREAMING_SNAKE_CASE__      :  list[float]       )	->    float:

							'''simple docstring'''






							SCREAMING_SNAKE_CASE__       :      List[Any]     =						sorted(numsa + numsa       )
							SCREAMING_SNAKE_CASE__   ,SCREAMING_SNAKE_CASE__       :      Dict     =						divmod(len(SCREAMING_SNAKE_CASE__       )			,				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()
		_lowerCamelCase :    List[str]  							= [float(x) for x in input('''Enter the elements of first array: ''').split()]
		_lowerCamelCase :    Any  							= [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)}")






