
"""simple docstring"""

from __future__ import annotations

from fractions import Fraction






def 							A						(    snake_case				:int    , snake_case				:int		)				->     bool:
 return (
     num != den and num % 1_0 == den // 1_0 and (num // 1_0) / (den % 1_0) == num / den
 )






def 							A						(    snake_case				:int		)				->     list[str]:
 __UpperCamelCase      =	[]
 __UpperCamelCase      =	1_1
 __UpperCamelCase      =	int('1' + '0' * digit_len		)
 for num in range(snake_case    , snake_case		):
  while den <= 9_9:
   if (num != den) and (num % 1_0 == den // 1_0) and (den % 1_0 != 0):
    if is_digit_cancelling(snake_case    , snake_case		):
     solutions.append(f'{num}/{den}'		)
   den += 1
  num += 1
  __UpperCamelCase      =	1_0
 return solutions






def 							A						(    snake_case				:int = 2		)				->     int:
 __UpperCamelCase      =	1.0
 for fraction in fraction_list(snake_case		):
  __UpperCamelCase      =	Fraction(snake_case		)
  result *= frac.denominator / frac.numerator
 return int(snake_case		)


if __name__ == "__main__":
      print(solution())





"""simple docstring"""

def 							A						(    snake_case				:int		)				->     bool:
 return sum(i for i in range(1    , number // 2 + 1		) if number % i == 0		) == number


if __name__ == "__main__":
      print("Program to check whether a number is a Perfect number or not...")
      UpperCamelCase     :    Union[str, Any]       =			int(input("Enter number: ").strip())
      print(f'''{number} is {"" if perfect(number) else "not "}a Perfect Number.''')



