#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int l, n; cin >> l >> n; vector a(n); for(int i = 0; i < n; i++) { cin >> a[i]; } cout << setprecision(20) << n * 1LL * pow(2, (l - 3)) << endl; return 0; }