import java.util.Scanner; public class No314 { int all = 0; public No314(int i){ kenkenpa(i,0,0); if(all>=Math.pow(10,9)+7) all%=Math.pow(10,9)+7; System.out.println(all); } public void kenkenpa(int i,int now,int k) { if(now==i){ all++; k=4; } if(k==0){ kenkenpa(i,now+1,1); }else if(k<2) { kenkenpa(i,now+1,k+1); kenkenpa(i,now+1,0); }else if(k==2){ kenkenpa(i,now+1,0); } } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i = sc.nextInt(); new No314(i); } }