i = 0
j = 0
n = 2**64
cur_n = 2
cur_d = 1
while True:
if ((i + j) * 26729) % cur_n == 0xeaaeb43e477b8487 % cur_n:
cur_n *= 2
cur_d *= 2
if cur_n == 2 ** 64:
print i
print i - 2 ** 64
exit()
i += cur_d
i = 0
j = 0
n = 2**64
cur_n = 2
cur_d = 1
while True:
if ((i + j) * 26729) % cur_n == 0xeaaeb43e477b8487 % cur_n:
cur_n *= 2
cur_d *= 2
if cur_n == 2 ** 64:
print i
print i - 2 ** 64
exit()
i += cur_d