def func(n): ans=0 if n==1: return 1 elif n==2: return 2 elif n%2==0: for i in range(1,n,2): ans+=n*func(i) return ans else: for j in range(2,n,2): ans+=n*func(j) return ans m=int(input()) mymod=10**9+7 print(func(m)%mymod)