


"""simple docstring"""


class snake_case      :







		def __init__(					self      :       Tuple    ,   a__      :       int		)       ->						None:





						'''simple docstring'''







						_A					  =			size
						_A					  =			[0] * size
						_A					  =			[0] * size







		@staticmethod
		def  a_ (					a__      :       int		)       ->						int:





						'''simple docstring'''







						return index | (index + 1)







		@staticmethod
		def  a_ (					a__      :       int		)       ->						int:





						'''simple docstring'''







						return (index & (index + 1)) - 1







		def  a_ (					self      :       Any    ,   a__      :       int    ,   a__      :       int		)       ->						None:





						'''simple docstring'''







						_A					  =			value
						while index < self.size:
										_A					  =			self.get_prev(a__		) + 1
										if current_left_border == index:
														_A					  =			value
										else:
														_A					  =			max(a__    ,   a__    ,   a__		)
										_A					  =			self.get_next(a__		)







		def  a_ (					self      :       int    ,   a__      :       int    ,   a__      :       int		)       ->						int:





						'''simple docstring'''







						right -= 1  # Because of right is exclusive
						_A					  =			0
						while left <= right:
										_A					  =			self.get_prev(a__		)
										if left <= current_left:
														_A					  =			max(a__    ,   self.tree[right]		)
														_A					  =			current_left
										else:
														_A					  =			max(a__    ,   self.arr[right]		)
														right -= 1
						return result


if __name__ == "__main__":
		import doctest

		doctest.testmod()



"""simple docstring"""


from __future__ import annotations






def      a__ (				__lowercase     ,			__lowercase   )	->	float:
				_A					  =			sorted(numsa + numsa   )
				_A  ,		_A					  =			divmod(len(__lowercase   )     ,			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()
		a_       							=    [float(x) for x in input("Enter the elements of first array: ").split()]
		a_       							=    [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)}''')