import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int n = sc.nextInt(); for(int i = 0; i < n; i++) { sc.next(); } l -= 3; long sum = (long)Math.pow(2, l); sum *= n; System.out.println(sum); } }