import java.util.*; import static java.lang.Math.*; public class ppp { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int a[]={6,2,5,5,4,5,6,3,7,6}; if(n==2)System.out.println(1); else if(n==3)System.out.println(7); else if(n==4)System.out.println(11); else{ int x=n/2; if(n%2==0){ for(int i=0;i