N = int(input()) def fib(n): f = ((1 + 5**0.5) / 2)**n / 5**0.5 + 0.5 return int(f) L = [(fib(i+1)**2)%1000000007 for i in range(N)] A = [] #print(L) for j in range(len(L)) : a = L[j]%1000000007 A.append(a) print(sum(A))