Files
CodeObject/zeta/py/completed/1904.py
2025-05-07 04:44:30 +09:00

9 lines
148 B
Python

N = int(input())
M = [1, 2] + [0 for _ in range(1000000 - 1 - 1)]
for i in range(2, N):
M[i] = (M[i - 1] + M[i - 2]) % 15746
print(M[N - 1])