using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); public static void Main() { Solve(); } static void Solve() { var n = NN; var dp = new long[n + 1]; dp[0] = 1; var mod = 1_000_000_007; for (var i = 3; i <= n; ++i) { for (var j = 0; j + i <= n; ++j) dp[i + j] = (dp[i + j] + dp[j]) % mod; } WriteLine(dp[n]); } }