#include int p2(int x){ int i,r=1; for(i = 1;i <= x;i++){r*=2;} return r; } int main(void) { int l,n,i,r; char s[4]; scanf("%d%d",&l,&n); for(i = 1;i <= n;i++){scanf("%s",s);} r = p2(l-3); printf("%d\n",r*n); return 0; }