#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n, i = 1;
  string turn = "Akshat";
  cin >> n >> m;
  while (i < m && i < n) {
    if (turn == "Akshat")
      turn = "Malvika";
    else
      turn = "Akshat";
    i++;
  }
  cout << turn << endl;
}
