import math


def     UpperCAmelCase__ (       lowerCAmelCase__  :int	)				->					int:
      '''simple docstring'''


      if not isinstance(lowerCAmelCase__      ,	lowerCAmelCase__	):
            lowercase														=			f'Input value of [number={number}] must be an integer'
            raise TypeError(lowerCAmelCase__	)

      if number < 1:
            lowercase														=			f'Input value of [number={number}] must be > 0'
            raise ValueError(lowerCAmelCase__	)
      elif number == 1:
            return 3
      elif number == 2:
            return 5
      else:
            lowercase														=			int(math.log(number // 3      ,	2	)	) + 2

            lowercase														=			[3, 5]
            lowercase														=			2
            lowercase														=			3
            for block in range(1      ,	lowerCAmelCase__	):
                  for _ in range(lowerCAmelCase__	):
                        proth_list.append(2 ** (block + 1) + proth_list[proth_index - 1]	)
                        proth_index += 1
                  increment *= 2

      return proth_list[number - 1]


if __name__ == "__main__":
       import doctest

       doctest.testmod()

       for number in range(1_1):
              __lowerCAmelCase					: Tuple        =0
              try:
                     __lowerCAmelCase					: Union[str, Any]        =proth(number)
              except ValueError:
                     print(F"""ValueError: there is no {number}th Proth number""")
                     continue

              print(F"""The {number}th Proth number: {value}""")




"""simple docstring"""






from __future__ import annotations


def     UpperCAmelCase__ (       lowerCAmelCase__  :list[float]      ,	lowerCAmelCase__  :list[float]	)				->					float:
      '''simple docstring'''


      lowercase														=			sorted(numsa + numsa	)
      lowercase							,							lowercase														=			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()
       __lowerCAmelCase					: List[Any]        =[float(x) for x in input("""Enter the elements of first array: """).split()]
       __lowerCAmelCase					: List[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)}""")



