"""simple docstring"""





def        a_  (   _lowerCAmelCase						:				list  ):





       '''simple docstring'''

       if any(not isinstance(__snake_case     ,				__snake_case  ) or x < 0 for x in sequence  ):
              raise TypeError('Sequence must be list of non-negative integers'  )
       for _ in range(len(__snake_case  )  ):
              for i, (rod_upper, rod_lower) in enumerate(zip(__snake_case     ,				sequence[1:]  )  ):
                     if rod_upper > rod_lower:
                            sequence[i] -= rod_upper - rod_lower
                            sequence[i + 1] += rod_upper - rod_lower
       return sequence


if __name__ == "__main__":
       assert bead_sort([5, 4, 3, 2, 1]) == [1, 2, 3, 4, 5]
       assert bead_sort([7, 9, 4, 3, 5]) == [3, 4, 5, 7, 9]


"""simple docstring"""





from __future__ import annotations





def        a_  (   _lowerCAmelCase						:				float     ,				_lowerCAmelCase						:				float     ,				_lowerCAmelCase						:				float     ,				):





       '''simple docstring'''

       if (stress, tangential_force, area).count(0  ) != 1:
              raise ValueError('You cannot supply more or less than 2 values'  )
       elif stress < 0:
              raise ValueError('Stress cannot be negative'  )
       elif tangential_force < 0:
              raise ValueError('Tangential Force cannot be negative'  )
       elif area < 0:
              raise ValueError('Area cannot be negative'  )
       elif stress == 0:
              return (
                  "stress",
                  tangential_force / area,
              )
       elif tangential_force == 0:
              return (
                  "tangential_force",
                  stress * area,
              )
       else:
              return (
                  "area",
                  tangential_force / stress,
              )


if __name__ == "__main__":
       import doctest

       doctest.testmod()

