import sys
sys.setrecursionlimit(10**6)
def fac(n):
    if n ==0 or n ==1:
        return 1
    else:
        return n* fac(n-1)
s=0
n = int(input())
for h in range(n//2+1):
    12
13
14
print(int(s)%10007)
