





"""simple docstring"""


import numpy as np





def 				a__      (	_UpperCAmelCase						,  _UpperCAmelCase						)     ->	str:

 '''simple docstring'''






 snake_case__     				=					np.array(UpperCAmelCase_						)
 snake_case__     				=					np.array(UpperCAmelCase_						)

 snake_case__     				=					abs(predict - actual						)
 snake_case__     				=					difference.mean()

 return score





def 				a__      (	_UpperCAmelCase						,  _UpperCAmelCase						)     ->	List[str]:

 '''simple docstring'''






 snake_case__     				=					np.array(UpperCAmelCase_						)
 snake_case__     				=					np.array(UpperCAmelCase_						)

 snake_case__     				=					predict - actual
 snake_case__     				=					np.square(UpperCAmelCase_						)

 snake_case__     				=					square_diff.mean()
 return score





def 				a__      (	_UpperCAmelCase						,  _UpperCAmelCase						)     ->	Optional[Any]:

 '''simple docstring'''






 snake_case__     				=					np.array(UpperCAmelCase_						)
 snake_case__     				=					np.array(UpperCAmelCase_						)

 snake_case__     				=					predict - actual
 snake_case__     				=					np.square(UpperCAmelCase_						)
 snake_case__     				=					square_diff.mean()
 snake_case__     				=					np.sqrt(UpperCAmelCase_						)
 return score





def 				a__      (	_UpperCAmelCase						,  _UpperCAmelCase						)     ->	Tuple:

 '''simple docstring'''






 snake_case__     				=					np.array(UpperCAmelCase_						)
 snake_case__     				=					np.array(UpperCAmelCase_						)

 snake_case__     				=					np.log(predict + 1						)
 snake_case__     				=					np.log(actual + 1						)

 snake_case__     				=					log_predict - log_actual
 snake_case__     				=					np.square(UpperCAmelCase_						)
 snake_case__     				=					square_diff.mean()

 snake_case__     				=					np.sqrt(UpperCAmelCase_						)

 return score





def 				a__      (	_UpperCAmelCase						,  _UpperCAmelCase						)     ->	str:

 '''simple docstring'''






 snake_case__     				=					np.array(UpperCAmelCase_						)
 snake_case__     				=					np.array(UpperCAmelCase_						)

 snake_case__     				=					predict - actual
 snake_case__     				=					np.sum(UpperCAmelCase_						) / len(UpperCAmelCase_						)
 snake_case__     				=					np.sum(UpperCAmelCase_						) / len(UpperCAmelCase_						)
 # print(numerator, denumerator)
 snake_case__     				=					float(UpperCAmelCase_						) / denumerator * 1_0_0

 return score





def 				a__      (	_UpperCAmelCase						,  _UpperCAmelCase						)     ->	Union[str, Any]:

 '''simple docstring'''






 return np.mean(np.array(UpperCAmelCase_						) == np.array(UpperCAmelCase_						)						)







'''simple docstring'''





from __future__ import annotations

import sys





def UpperCAmelCase    (       UpperCAmelCase_   ,	UpperCAmelCase_						):
    # base cases
    if abs(UpperCAmelCase_						) == 1:
        return a, 0
    elif abs(UpperCAmelCase_						) == 1:
        return 0, b

    _a       , _a				:							List[Any]							       =      a, b
    _a       , _a				:							str							       =      1, 0
    _a       , _a				:							Union[str, Any]							       =      0, 1

    while remainder != 0:
        _a				:							List[Any]							       =      old_remainder // remainder
        _a       , _a				:							str							       =      remainder, old_remainder - quotient * remainder
        _a       , _a				:							Optional[Any]							       =      coeff_a, old_coeff_a - quotient * coeff_a
        _a       , _a				:							Tuple							       =      coeff_b, old_coeff_b - quotient * coeff_b

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

    return old_coeff_a, old_coeff_b





def UpperCAmelCase    (       ):
    if len(sys.argv						) < 3:
        print("""2 integer arguments required"""						)
        return 1
    _a				:							Union[str, Any]							       =      int(sys.argv[1]						)
    _a				:							Any							       =      int(sys.argv[2]						)
    print(extended_euclidean_algorithm(UpperCAmelCase_   ,	UpperCAmelCase_						)						)
    return 0


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


