import java.util.*; public class Main { static final int MOD = 1000000007; public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][][] dp = new int[n + 1][2][2]; dp[1][1][0] = 1; for (int i = 2; i <= n; i++) { for (int j = 0; j < 2; j++) { for (int k = 0; k < 2; k++) { if (k == 0) { dp[i][k][1] += dp[i - 1][j][k]; dp[i][k][1] %= MOD; } if (j != 0 || k != 0) { dp[i][k][0] += dp[i - 1][j][k]; dp[i][k][0] %= MOD; } } } } int total = 0; for (int j = 0; j < 2; j++) { for (int k = 0; k < 2; k++) { total += dp[n][j][k]; total %= MOD; } } System.out.println(total); } }