def 				lowerCAmelCase__       (			a__    ,     a__ )      ->None:




  '''simple docstring'''

  _UpperCamelCase           =    len(_lowercase )
  print("The following activities are selected:" )

  # The first activity is always selected
  _UpperCamelCase           =    0
  print(_lowercase    ,     end="," )

  # Consider rest of the activities
  for j in range(_lowercase ):
    # If this activity has start time greater than
    # or equal to the finish time of previously
    # selected activity, then select it
    if start[j] >= finish[i]:
      print(_lowercase    ,     end="," )
      _UpperCamelCase           =    j


if __name__ == "__main__":
   import doctest

   doctest.testmod()

   lowerCamelCase__  =					[1, 3, 0, 5, 8, 5]
   lowerCamelCase__  =					[2, 4, 6, 7, 9, 9]
   print_max_activities(start, finish)






from functools import lru_cache

@lru_cache
def  __lowerCamelCase					( _lowercase			)       ->      int:
     if num < 0:
          raise ValueError('Number should not be negative.'			)

     return 1 if num in (0, 1) else num * factorial(num - 1			)


if __name__ == "__main__":
 import doctest

 doctest.testmod()


