import java.util.Scanner; import java.math.BigInteger; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); // input final int NUM = scan.nextInt(); BigInteger[] kenpa = new BigInteger[NUM+1]; // search for(int i = 1; i <= NUM; i++){ if(i == 1){ kenpa[1] = BigInteger.valueOf(1); } else if(i == 2){ kenpa[2] = BigInteger.valueOf(2); } else if(i == 3){ kenpa[3] = BigInteger.valueOf(2); } else { kenpa[i] = kenpa[i-2].add(kenpa[i-3]); } } // answer System.out.println(kenpa[NUM].mod(BigInteger.valueOf(1000000007))); } }