n=int(input()) def f(x): if x==1:return 1 if x%2==0:return x*(sum([f(y) for y in range(1,x,2)]))%(10**9+7) else:return x*(sum([f(y) for y in range(2,x,2)]))%(10**9+7) print(f(n)%(10**9+7))