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