N = int(input()) Amaru = list(range(10**6 + 1)) Abatsu = list(range(10**6 + 1)) Amaru[1] = 0 Abatsu[1] = 1 Amaru[2] = 1 Abatsu[2] = 1 for i in range(3, N + 1): Amaru[i] = Abatsu[i - 1] Abatsu[i] = Amaru[i - 1] + Amaru[i - 2] print((Amaru[N] + Abatsu[N]) % 1000000007)