





a__      :     Optional[int]         =		9.8_06_65

def      UpperCAmelCase_    (    _UpperCAmelCase							:float  ,						_UpperCAmelCase							:float  ,						_UpperCAmelCase							:float = g				)	->				float:
     '''simple docstring'''


     if fluid_density <= 0:
          raise ValueError('''Impossible fluid density'''				)
     if volume < 0:
          raise ValueError('''Impossible Object volume'''				)
     if gravity <= 0:
          raise ValueError('''Impossible Gravity'''				)

     return fluid_density * gravity * volume


if __name__ == "__main__":
      import doctest

      # run doctest
      doctest.testmod()










def      UpperCAmelCase_    (    _UpperCAmelCase							:Any  ,						_UpperCAmelCase							:Dict				)	->				Union[str, Any]:
     '''simple docstring'''


     A_          =       [1]
     for i in range(2  ,						_UpperCAmelCase				):
          factorials.append(factorials[-1] * i				)
     assert 0 <= k < factorials[-1] * n, "k out of bounds"

     A_          =       []
     A_          =       list(range(_UpperCAmelCase				)				)

     # Find permutation
     while factorials:
          A_          =       factorials.pop()
          A_   ,    A_          =       divmod(_UpperCAmelCase  ,						_UpperCAmelCase				)
          permutation.append(elements[number]				)
          elements.remove(elements[number]				)
     permutation.append(elements[0]				)

     return permutation


if __name__ == "__main__":
      import doctest

      doctest.testmod()



