#yuki718 mod=10**9+7 def mul(a,b): return [(a[0]*b[0]+a[1]*b[2])%mod, (a[0]*b[1]+a[1]*b[3])%mod, (a[2]*b[0]+a[3]*b[2])%mod, (a[2]*b[1] + a[3]*b[3])%mod] def fib(n): if n<=1: return n res=[1,0,0,1] mx=[1,1,1,0] while n>0: if n%2: res=mul(mx,res) mx=mul(mx,mx) n/=2 return res[2]%mod N=int(raw_input()) print (fib(N)*fib(N+1))%mod