import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int L = scan.nextInt(); int N = scan.nextInt(); String []S = new String[N]; for(int i = 0; i < N; i++) { S[i] = scan.next(); } scan.close(); int ans = (int)Math.pow(2, L - 3) * N; System.out.println(ans); } }