


"""simple docstring"""






def    A_ ( _lowerCAmelCase  :       int							):






     """simple docstring"""

     if number != int(_lowercase							):
          raise ValueError('''factorial() only accepts integral values'''							)
     if number < 0:
          raise ValueError('''factorial() not defined for negative values'''							)
     _a     						=					1
     for i in range(1,  number + 1							):
          value *= i
     return value
def    A_ ( _lowerCAmelCase  :       int							):






     """simple docstring"""

     if not isinstance(_lowercase,  _lowercase							):
          raise ValueError('''factorial() only accepts integral values'''							)
     if n < 0:
          raise ValueError('''factorial() not defined for negative values'''							)
     return 1 if n == 0 or n == 1 else n * factorial(n - 1							)


if __name__ == "__main__":
   import doctest

   doctest.testmod()

   __snake_case												=							int(input('''Enter a positive integer: ''').strip() or 0)
   print(f'factorial{n} is {factorial(n)}')






import itertools
from pathlib import Path

def      a    (   _lowercase :  list[str]							)  ->int:
		UpperCamelCase__								=						[tuple(_lowercase							) for login in logins]

		UpperCamelCase__								=						{char for login in split_logins for char in login}

		for permutation in itertools.permutations(_lowercase							):
				UpperCamelCase__								=						True
				for login in logins:
						if not (
						    permutation.index(login[0]							)
						    < permutation.index(login[1]							)
						    < permutation.index(login[2]							)
						):
								UpperCamelCase__								=						False
								break

				if satisfied:
						return int("""""".join(_lowercase							)							)

		raise Exception("""Unable to find the secret passcode"""							)

def      a    (   _lowercase :  str = "keylog.txt"							)  ->int:
		UpperCamelCase__								=						Path(_lowercase							).parent.joinpath(_lowercase							).read_text().splitlines()

		return find_secret_passcode(_lowercase							)


if __name__ == "__main__":
				print(f"""{solution() = }""")





