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