



"""simple docstring"""


import itertools
from pathlib import Path

def 					_lowerCAmelCase (  lowercase_		):
						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 					_lowerCAmelCase (  lowercase_ = "keylog.txt"		):
						UpperCAmelCase			 =					Path(lowercase_		).parent.joinpath(lowercase_		).read_text().splitlines()

						return find_secret_passcode(lowercase_		)


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












def  A_(      A ):
	if not isinstance(A					,   A ):
		UpperCAmelCase_		    =  f"""Input value of [number={number}] must be an integer"""
		raise TypeError(A )
	if number < 0 or number % 2 == 1:
		return False
	UpperCAmelCase_		    =  int(number**0.5 )
	return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
				import doctest

				doctest.testmod()


