· 2 years ago · Sep 26, 2023, 09:05 PM
1secret_key = [int(x) for x in input().split()]
2secret_msg = input()
3
4how_long = len(secret_key)
5while secret_msg != "find":
6 secret_text = "".join([chr(ord(secret_msg[i]) - secret_key[i % how_long]) for i in range(len(secret_msg))])
7 item = secret_text.split("&")[-2]
8 location = secret_text.split("<")[-1][:-1]
9 print(f"Found {item} at {location}")
10 secret_msg = input()