
"""simple docstring"""






from __future__ import annotations

import sys
def    UpperCamelCase						(					UpperCAmelCase ,   UpperCAmelCase     )						->tuple[int, int]:

   """simple docstring"""



   if abs(UpperCAmelCase     ) == 1:
      return a, 0
   elif abs(UpperCAmelCase     ) == 1:
      return 0, b

   a_   ,			a_						   =     a, b
   a_   ,			a_						   =     1, 0
   a_   ,			a_						   =     0, 1

   while remainder != 0:
      a_						   =     old_remainder // remainder
      a_   ,			a_						   =     remainder, old_remainder - quotient * remainder
      a_   ,			a_						   =     coeff_a, old_coeff_a - quotient * coeff_a
      a_   ,			a_						   =     coeff_b, old_coeff_b - quotient * coeff_b

   # sign correction for negative numbers
   if a < 0:
      a_						   =     -old_coeff_a
   if b < 0:
      a_						   =     -old_coeff_b

   return old_coeff_a, old_coeff_b
def    UpperCamelCase						(					)						->Dict:

   """simple docstring"""



   if len(sys.argv     ) < 3:
      print("2 integer arguments required"     )
      return 1
   a_						   =     int(sys.argv[1]     )
   a_						   =     int(sys.argv[2]     )
   print(extended_euclidean_algorithm(UpperCAmelCase ,   UpperCAmelCase     )     )
   return 0


if __name__ == "__main__":
      raise SystemExit(main())

"""simple docstring"""






from collections import namedtuple

UpperCamelCase_						   =   namedtuple('from_to', 'from_ to')

UpperCamelCase_						   =   {
    'atm': from_to(1, 1),
    'pascal': from_to(0.0_00_00_98, 101325),
    'bar': from_to(0.98_69_23, 1.0_13_25),
    'kilopascal': from_to(0.00_98_69_23, 1_01.3_25),
    'megapascal': from_to(9.8_69_23, 0.10_13_25),
    'psi': from_to(0.06_80_46, 14.69_59),
    'inHg': from_to(0.0_33_42_11, 29.92_13),
    'torr': from_to(0.00_13_15_79, 760),
}
def    UpperCamelCase						(					UpperCAmelCase ,   UpperCAmelCase ,   UpperCAmelCase     )						->float:

   """simple docstring"""



   if from_type not in PRESSURE_CONVERSION:
      raise ValueError(
          F'''Invalid \'from_type\' value: {from_type!r}  Supported values are:\n'''
          + ", ".join(UpperCAmelCase     )     )
   if to_type not in PRESSURE_CONVERSION:
      raise ValueError(
          F'''Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n'''
          + ", ".join(UpperCAmelCase     )     )
   return (
       value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
   )


if __name__ == "__main__":
      import doctest

      doctest.testmod()