package text;
import java.util.*;
public class text2 {
//随机生成一个n bit位的长整数
public static void main(String[] args){
Scanner in=new Scanner(System.in);
int n=in.nextInt();
long value=createRndInteger(n);
System.out.println(value);
}
public static long createRndInteger(int n){
int low=(int)Math.pow(2, n-1);
int top=0;
for(int i=0;i<n;i++){
top+=Math.pow(2, i);
}
Random random=new Random();
int num=
random.nextInt(top-low+1)+low;
return num;
}
}