"""simple docstring"""







import torch



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


if __name__ == "__main__":
       main()






'''simple docstring'''



def        UpperCAmelCase (    A	:					int					):
							if not isinstance(A       ,		A					):
														SCREAMING_SNAKE_CASE       :   List[str]         =      F"""Input value of [number={number}] must be an integer"""
														raise TypeError(A					)
							if number < 0:
														return False
							SCREAMING_SNAKE_CASE       :   List[str]         =      number * number
							while number > 0:
														if number % 10 != number_square % 10:
																					return False
														number //= 10
														number_square //= 10
							return True


if __name__ == "__main__":
							import doctest

							doctest.testmod()




