import java.io.BufferedReader; import java.io.InputStreamReader; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class ck { public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); in.nextLine(); ArrayList list = new ArrayList(); int arr[] = new int[n]; for(int i = 0;i=0;i--){ ans += Math.pow(2, j)*arr[i]; j++; } System.out.println(ans); } }