n=int(input()) mod=10**9+7 even,odd=0,1 for i in range(2,n): if i%2==0: even+=odd*i even%mod else: odd+=even*i odd%mod print(even*n if n%2 else odd*n)