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