





'''simple docstring'''






def       lowercase_      (		lowercase__				,  lowercase__						)   ->None:
						_snake_case:   Optional[int]  					=		len(lowercase__						)
						print('The following activities are selected:'						)

						# The first activity is always selected
						_snake_case:   int  					=		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=','						)
																		_snake_case:   List[str]  					=		j


if __name__ == "__main__":
		import doctest

		doctest.testmod()

		A   : Union[str, Any]             =			[1, 3, 0, 5, 8, 5]
		A   : int             =			[2, 4, 6, 7, 9, 9]
		print_max_activities(start, finish)












'''simple docstring'''






import torch





def       lowercase_      (		)   ->Dict:
						if torch.cuda.is_available():
												_snake_case:   Any  					=		torch.cuda.device_count()
						else:
												_snake_case:   Optional[int]  					=		0
						print(F'''Successfully ran on {num_gpus} GPUs'''						)


if __name__ == "__main__":
		main()





