


"""simple docstring"""


def      a__ (				__lowercase     ,			__lowercase   )	->	None:
				_A					  =			len(__lowercase   )
				print("The following activities are selected:"   )

				# The first activity is always selected
				_A					  =			0
				print(__lowercase     ,			end=","   )

				# Consider rest of the activities
				for j in range(__lowercase   ):
								# If this activity has start time greater than
								# or equal to the finish time of previously
								# selected activity, then select it
								if start[j] >= finish[i]:
												print(__lowercase     ,			end=","   )
												_A					  =			j


if __name__ == "__main__":
		import doctest

		doctest.testmod()

		a_       							=    [1, 3, 0, 5, 8, 5]
		a_       							=    [2, 4, 6, 7, 9, 9]
		print_max_activities(start, finish)



"""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)}''')