#!/usr/bin/env python3

from collections import deque

INPUT = 324

spinlock = deque()

for n in range(2017):
    spinlock.append(n)
    spinlock.rotate(-INPUT)

print(spinlock[0])

467d55c5d7e071d49b4be8e2f9e08838f2f65c94
<mask token>

<mask token>
for n in range(2017):
    spinlock.append(n)
    spinlock.rotate(-INPUT)
print(spinlock[0])

<mask token>
INPUT = 324
spinlock = deque()
for n in range(2017):
    spinlock.append(n)
    spinlock.rotate(-INPUT)
print(spinlock[0])

from collections import deque
INPUT = 324
spinlock = deque()
for n in range(2017):
    spinlock.append(n)
    spinlock.rotate(-INPUT)
print(spinlock[0])

#!/usr/bin/env python3

from collections import deque

INPUT = 324

spinlock = deque()

for n in range(2017):
    spinlock.append(n)
    spinlock.rotate(-INPUT)

print(spinlock[0])
