



import os
import platform
import sys


_snake_case           =			'3'

print("""Python version:""", sys.version)

print("""OS platform:""", platform.platform())
print("""OS architecture:""", platform.machine())

try:
  import torch

  print("""Torch version:""", torch.__version__)
  print("""Cuda available:""", torch.cuda.is_available())
  print("""Cuda version:""", torch.version.cuda)
  print("""CuDNN version:""", torch.backends.cudnn.version())
  print("""Number of GPUs available:""", torch.cuda.device_count())
except ImportError:
  print("""Torch version:""", None)

try:
  import transformers

  print("""transformers version:""", transformers.__version__)
except ImportError:
  print("""transformers version:""", None)













def _A       (   __magic_name__	):
   try:
      lowercase__			       =  float(__magic_name__	)
   except ValueError:
      raise ValueError("Please enter a valid number"	)
   lowercase__			       =  decimal - int(__magic_name__	)
   if fractional_part == 0:
      return int(__magic_name__	), 1
   else:
      lowercase__			       =  len(str(__magic_name__	).split("."	)[1]	)
      lowercase__			       =  int(decimal * (10**number_of_frac_digits)	)
      lowercase__			       =  10**number_of_frac_digits
      lowercase__       ,							lowercase__			       =  denominator, numerator
      while True:
         lowercase__			       =  dividend % divisor
         if remainder == 0:
            break
         lowercase__       ,							lowercase__			       =  divisor, remainder
      lowercase__       ,							lowercase__			       =  numerator / divisor, denominator / divisor
      return int(__magic_name__	), int(__magic_name__	)


if __name__ == "__main__":
  print(F"""{decimal_to_fraction(2) = }""")
  print(F"""{decimal_to_fraction(89.0) = }""")
  print(F"""{decimal_to_fraction("67") = }""")
  print(F"""{decimal_to_fraction("45.0") = }""")
  print(F"""{decimal_to_fraction(1.5) = }""")
  print(F"""{decimal_to_fraction("6.25") = }""")
  print(F"""{decimal_to_fraction("78td") = }""")






