
# Lint as: python3
import itertools
import os
import re


lowercase__       =re.compile(R'([A-Z]+)([A-Z][a-z])')
lowercase__       =re.compile(R'([a-z\d])([A-Z])')

lowercase__       =re.compile(R'(?<!_)_(?!_)')
lowercase__       =re.compile(R'(_{2,})')

lowercase__       =R'^\w+(\.\w+)*$'

lowercase__       =R'<>:/\|?*'




def    __UpperCamelCase     (				lowerCAmelCase__							:				Optional[Any]  ):
 __a :  Any						=  _uppercase_uppercase_re.sub(R'''\1_\2'''  ,   lowerCAmelCase__  )
 __a :  Tuple						=  _lowercase_uppercase_re.sub(R'''\1_\2'''  ,   lowerCAmelCase__  )
 return name.lower()




def    __UpperCamelCase     (				lowerCAmelCase__							:				Optional[int]  ):
 __a :  Union[str, Any]						=  _single_underscore_re.split(lowerCAmelCase__  )
 __a :  str						=  [_multiple_underscores_re.split(lowerCAmelCase__  ) for n in name]
 return "".join(n.capitalize() for n in itertools.chain.from_iterable(lowerCAmelCase__  ) if n != ''''''  )




def    __UpperCamelCase     (				lowerCAmelCase__							:				int  ):
 if os.path.basename(lowerCAmelCase__  ) != name:
  raise ValueError(f"Should be a dataset name, not a path: {name}"  )
 return camelcase_to_snakecase(lowerCAmelCase__  )




def    __UpperCamelCase     (				lowerCAmelCase__							:				Dict  ,   lowerCAmelCase__							:				Any  ):
 if os.path.basename(lowerCAmelCase__  ) != name:
  raise ValueError(f"Should be a dataset name, not a path: {name}"  )
 if not re.match(_split_re  ,   lowerCAmelCase__  ):
  raise ValueError(f"Split name should match '{_split_re}'' but got '{split}'."  )
 return f"{filename_prefix_for_name(lowerCAmelCase__  )}-{split}"




def    __UpperCamelCase     (				lowerCAmelCase__							:				Optional[int]  ,   lowerCAmelCase__							:				Optional[int]  ,   lowerCAmelCase__							:				List[str]  ,   lowerCAmelCase__							:				str=None  ):
 __a :  List[Any]						=  filename_prefix_for_split(lowerCAmelCase__  ,   lowerCAmelCase__  )
 if filetype_suffix:
  prefix += f".{filetype_suffix}"
 __a :  int						=  os.path.join(lowerCAmelCase__  ,   lowerCAmelCase__  )
 return f"{filepath}*"




def    __UpperCamelCase     (				lowerCAmelCase__							:				List[str]  ,   lowerCAmelCase__							:				Union[str, Any]  ,   lowerCAmelCase__							:				Optional[int]  ,   lowerCAmelCase__							:				int=None  ,   lowerCAmelCase__							:				Dict=None  ):
 __a :  Tuple						=  filename_prefix_for_split(lowerCAmelCase__  ,   lowerCAmelCase__  )
 __a :  List[str]						=  os.path.join(lowerCAmelCase__  ,   lowerCAmelCase__  )

 if shard_lengths:
  __a :  Tuple						=  len(lowerCAmelCase__  )
  __a :  List[Any]						=  [f"{prefix}-{shard_id:05d}-of-{num_shards:05d}" for shard_id in range(lowerCAmelCase__  )]
  if filetype_suffix:
   __a :  List[str]						=  [filename + f".{filetype_suffix}" for filename in filenames]
  return filenames
 else:
  __a :  str						=  prefix
  if filetype_suffix:
   filename += f".{filetype_suffix}"
  return [filename]


from __future__ import annotations




def    __UpperCamelCase     (				lowerCAmelCase__							:				list[float]  ,   lowerCAmelCase__							:				list[float]  ):
 __a :  Dict						=  sorted(numsa + numsa  )
 __a				,       __a :  Optional[Any]						=  divmod(len(lowerCAmelCase__  )  ,   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()
      lowercase__       =[float(x) for x in input('Enter the elements of first array: ').split()]
      lowercase__       =[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)}""")
