



'''simple docstring'''







import itertools
from pathlib import Path







def  SCREAMING_SNAKE_CASE__ (				SCREAMING_SNAKE_CASE     ):
		SCREAMING_SNAKE_CASE_						:Tuple										=      [tuple(SCREAMING_SNAKE_CASE     ) for login in logins]

		SCREAMING_SNAKE_CASE_						:Union[str, Any]										=      {char for login in split_logins for char in login}

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

				if satisfied:
						return int(''.join(SCREAMING_SNAKE_CASE     )     )

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







def  SCREAMING_SNAKE_CASE__ (				SCREAMING_SNAKE_CASE = "keylog.txt"     ):
		SCREAMING_SNAKE_CASE_						:int										=      Path(SCREAMING_SNAKE_CASE     ).parent.joinpath(SCREAMING_SNAKE_CASE     ).read_text().splitlines()

		return find_secret_passcode(SCREAMING_SNAKE_CASE     )


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





'''simple docstring'''







def  SCREAMING_SNAKE_CASE__ (				SCREAMING_SNAKE_CASE = 1000     ):
		return sum(i for i in range(SCREAMING_SNAKE_CASE     ) if i % 3 == 0 or i % 5 == 0     )


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