public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt();
BigInteger bigInteger1 = new BigInteger("1"); BigInteger bigInteger2 = new BigInteger("2"); BigInteger ss = bigInteger1; BigInteger ans = ss; for (int i = 1; i < n; i++) { ans = ss.multiply(bigInteger2).add(bigInteger1); ss = ans; } System.out.println(ans.multiply(bigInteger2)); } }