import java.util.Scanner; public class q24723 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.print((int)Math.pow(2,N)); } }