16 lines
273 B
Python
16 lines
273 B
Python
|
import sys
|
||
|
|
||
|
mask = 16777216-1
|
||
|
def ng(n:int):
|
||
|
n ^= (n << 6) & mask
|
||
|
n ^= (n >> 5) & mask
|
||
|
n ^= (n << 11) & mask
|
||
|
return n
|
||
|
|
||
|
ans = 0
|
||
|
for x in = map(int,sys.stdin.read().strip().split('\n')):
|
||
|
for _ in range(2000):
|
||
|
x = ng(x)
|
||
|
ans += x
|
||
|
print(ans)
|