n=int(input()) k=0 l=1 m=0 while n: t=k k=l+m m=l l=t k%=10**9+7 n-=1 print((k+l)%1000000007)