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