
"""simple docstring"""





import math
import sys



def       lowerCamelCase__		(			__snake_case	)							->		str:


					"""simple docstring"""





					_UpperCamelCase							 =  ''''''
					try:
										with open(__snake_case,     '''rb'''	) as binary_file:
															_UpperCamelCase							 =  binary_file.read()
										for dat in data:
															_UpperCamelCase							 =  F'''{dat:08b}'''
															result += curr_byte
										return result
					except OSError:
										print('''File not accessible'''	)
										sys.exit()



def       lowerCamelCase__		(			__snake_case	)							->		str:


					"""simple docstring"""





					_UpperCamelCase							 =  {'''0''': '''0''', '''1''': '''1'''}
					_UpperCamelCase ,  _UpperCamelCase							 =  '''''', ''''''
					_UpperCamelCase							 =  len(__snake_case	)

					for i in range(len(__snake_case	)	):
										curr_string += data_bits[i]
										if curr_string not in lexicon:
															continue

										_UpperCamelCase							 =  lexicon[curr_string]
										result += last_match_id
										_UpperCamelCase							 =  last_match_id + '''0'''

										if math.loga(__snake_case	).is_integer():
															_UpperCamelCase							 =  {}
															for curr_key in list(__snake_case	):
																				_UpperCamelCase							 =  lexicon.pop(__snake_case	)
															_UpperCamelCase							 =  new_lex

										_UpperCamelCase							 =  last_match_id + '''1'''
										index += 1
										_UpperCamelCase							 =  ''''''
					return result



def       lowerCamelCase__		(			__snake_case,     __snake_case	)							->		None:


					"""simple docstring"""





					_UpperCamelCase							 =  8
					try:
										with open(__snake_case,     '''wb'''	) as opened_file:
															_UpperCamelCase							 =  [
															    to_write[i : i + byte_length]
															    for i in range(0,     len(__snake_case	),     __snake_case	)
															]

															if len(result_byte_array[-1]	) % byte_length == 0:
																				result_byte_array.append('''10000000'''	)
															else:
																				result_byte_array[-1] += "1" + "0" * (
																				    byte_length - len(result_byte_array[-1]	) - 1
																				)

															for elem in result_byte_array[:-1]:
																				opened_file.write(int(__snake_case,     2	).to_bytes(1,     byteorder='''big'''	)	)
					except OSError:
										print('''File not accessible'''	)
										sys.exit()



def       lowerCamelCase__		(			__snake_case	)							->		str:


					"""simple docstring"""





					_UpperCamelCase							 =  0
					for letter in data_bits:
										if letter == "1":
															break
										counter += 1

					_UpperCamelCase							 =  data_bits[counter:]
					_UpperCamelCase							 =  data_bits[counter + 1 :]
					return data_bits



def       lowerCamelCase__		(			__snake_case,     __snake_case	)							->		None:


					"""simple docstring"""





					_UpperCamelCase							 =  read_file_binary(__snake_case	)
					_UpperCamelCase							 =  remove_prefix(__snake_case	)
					_UpperCamelCase							 =  decompress_data(__snake_case	)
					write_file_binary(__snake_case,     __snake_case	)


if __name__ == "__main__":
				compress(sys.argv[1], sys.argv[2])








"""simple docstring"""





from __future__ import annotations



def       lowerCamelCase__		(			__snake_case,     __snake_case	)							->		float:


					"""simple docstring"""





					_UpperCamelCase							 =  sorted(numsa + numsa	)
					_UpperCamelCase ,  _UpperCamelCase							 =  divmod(len(__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()
				_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)}""")






