#include using namespace std; typedef long long LL; int main() { // 1. 入力情報取得. LL L; int N; cin >> L >> N; // 2. simpleDNAの配列のパターン数を計算. LL ans = 1LL; for(int i = 0; i < L - 3; i++) ans *= 2LL; ans *= N; // 終止コドン. // 3. 出力. cout << ans << endl; return 0; }