#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string win = "Malvika";
  while (1) {
    if (n == 0 || m == 0) break;
    n--;
    m--;
    if (win == "Akshat")
      win = "Malvika";
    else
      win = "Akshat";
  }
  cout << win << endl;
  return 0;
}
