#include #include int main(void) { int l; int n; int res; scanf("%d",&l); scanf("%d",&n); //res = (l-3)**n * n; res = pow(2,l-3)*n; printf("%d\n", res); //printf(\n); return 0; }