from sys import stdin, stdout input = lambda: stdin.readline().rstrip() write = stdout.write def main(): N = int(input()) mod = 1000000007 ans = (fib(N) % mod) * (fib(N + 1) % mod) % mod print(ans) def fib(n): if n < 2: return n result = [1, 0, 0, 1] matrix = [1, 1, 1, 0] while n > 0: if n % 2: result = mul(matrix, result) matrix = mul(matrix, matrix) n //= 2 return result[2] def mul(a, b): return [a[0]*b[0] + a[1]*b[2], a[0]*b[1] + a[1]*b[3], a[2]*b[0] + a[3]*b[2], a[2]*b[1] + a[3]*b[3]] main()