package yukicoder; import java.math.BigDecimal; import java.util.Scanner; public class N314 { long[][] dp; int n; public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); N314 inst = new N314(); inst.solve(n); } public void solve(int n){ this.n = n; dp = new long[n][n]; System.out.println(BigDecimal.valueOf(calc(0, 0) % (Math.pow(10, 9) + 7))); } public long calc(int k, int l){ long fuga; if(k >= this.n) return 1; if(dp[k][l] != 0){ return dp[k][l]; } if(l >= 2){ fuga = calc(k + 1, 0); dp[k][l] = fuga; return fuga; }else if(l == 1){ fuga = calc(k + 1, 2) + calc(k + 1, 0); dp[k][l] = fuga; return fuga; }else{ fuga = calc(k + 1, 1); dp[k][l] = fuga; return fuga; } } }