




'''simple docstring'''

import itertools
from pathlib import Path




def    snake_case__     (  a	)			->       int:





			'''simple docstring'''






			snake_case__          =						[tuple(__lowercase	) for login in logins]

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

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

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

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




def    snake_case__     (  a = "keylog.txt"	)			->       int:





			'''simple docstring'''






			snake_case__          =						Path(__lowercase	).parent.joinpath(__lowercase	).read_text().splitlines()

			return find_secret_passcode(__lowercase	)


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



"""simple docstring"""


def   a__			(					__lowercase  ,      __lowercase )						->						Tuple:
				_A       	=      1
				while b > 0:
								if b & 1:
												res *= a

								a *= a
								b >>= 1

				return res






def   a__			(					__lowercase  ,      __lowercase  ,      __lowercase )						->						Optional[Any]:
				_A       	=      1
				while b > 0:
								if b & 1:
												_A       	=      ((res % c) * (a % c)) % c

								a *= a
								b >>= 1

				return res