#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a, i, j = 26;
  cin >> n >> a;
  if (a == 14) {
    cout << "64509974703297150976";
  }
  if (a == 15) cout << "1677259342285725925376";
  if (a == 16) cout << "43608742899428874059776";
  if (a == 17) cout << "1133827315385150725554176";
  if (a == 18) cout << "29479510200013918864408576";
  if (a == 19) cout << "766467265200361890474622976";
  if (a == 20) cout << "19928148895209409152340197376";
  if (a == 21) cout << "518131871275444637960845131776";
  if (a == 22) cout << "13471428653161560586981973426176";
  if (a < 14) {
    for (i = 1; i < a; i++) {
      j *= 26;
    }
    cout << j;
  }
  for (i = 0; i < n; i++) {
    cout << 0;
  }
  return 0;
}
