# w, h = map(int, input().split())
# lst = [list(input()) for _ in range(h)]
# print(lst)
msg = "@Hello"
seed = 581980637
off = 10
"135 155 214 19 183 44"
def rnd(o=0):
s = 0
n = lambda s: (840 * s + 4347) % 7140
i = 0
while i < o:
s = n(s)
i += 1
while 1:
s = n(s)
yield s
def cipher(s, o):
gen = rnd(o)
ans = []
for c in s:
x = 0xff & (gen.__next__() ^ ord(c))
ans.append(x)
return ans
# print(cipher(msg, off))
def find(lst):
gen = rnd()
u = ord('@')
k = 0
while k < 16:
s = (gen.__next__() ^ u) & 0xff
k += 1
if s == lst[0]:
break
ans = ""
for n in lst[1:]:
ans += chr((gen.__next__() ^ n) & 0xff)
return ans
l = [135, 155, 214, 19, 183, 44]
print(find(l))
To embed this program on your website, copy the following code and paste it into your website's HTML: