package no_0314; import java.util.Scanner; import java.util.stream.LongStream; public class KenkenPa02 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // while(true) { int N = sc.nextInt(); long ways = 0; long[][] prev = {{0L, 0L}, {1L, 1L}}; if(N == 1) { ways = 1; System.out.println(ways); return; }else if(N == 2) { ways = 2; System.out.println(ways); return; } for(int i = 3; i <= N; i++) { long[][] temp = new long[2][2]; temp[1][1] = prev[0][1]; temp[1][0] = prev[0][1] + prev[1][1]; temp[0][1] = prev[1][0]; prev = temp.clone(); } for(long[] p: prev) { ways += LongStream.of(p).sum(); } System.out.println(ways % (1000000000 + 7)); // } } }