MOD = 1000000007
n = int(input())

m = [0, 1]
for i in range(1, (n - 1) // 2 + 2):
    m.append(m[i])
    m.append((m[i] + m[i + 1]) % MOD)

if n % 2 == 1:
    print('pop')
    m.pop()

print(sum(m) % MOD)
