'''simple docstring'''




def _lowercase	(      lowerCamelCase__							,    lowerCamelCase__						)					->       Union[str, Any]:





							"""simple docstring"""


							__UpperCAmelCase  :				Union[str, Any]       				=		len(snake_case_						)
							print("The following activities are selected:"						)

							# The first activity is always selected
							__UpperCAmelCase  :				Tuple       				=		0
							print(snake_case_							,    end=","						)

							# Consider rest of the activities
							for j in range(snake_case_						):
														# 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(snake_case_							,    end=","						)
																					__UpperCAmelCase  :				Optional[int]       				=		j


if __name__ == "__main__":
			import doctest

			doctest.testmod()

			_a   :	Tuple 							=   [1, 3, 0, 5, 8, 5]
			_a   :	Optional[int] 							=   [2, 4, 6, 7, 9, 9]
			print_max_activities(start, finish)







'''simple docstring'''




def _lowercase	(      lowerCamelCase__ = 100						)					->       int:





       """simple docstring"""


       __UpperCAmelCase  :				Optional[Any]       				=		(n * (n + 1) // 2) ** 2
       __UpperCAmelCase  :				Any       				=		n * (n + 1) * (2 * n + 1) // 6
       return sum_cubes - sum_squares


if __name__ == "__main__":
   print(f"""{solution() = }""")






