#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  bool Akshat = false;
  cin >> n >> m;
  while (n > 0 && m > 0) {
    n--;
    m--;
    if (Akshat) {
      Akshat = false;
    } else {
      Akshat = true;
    }
  }
  if (Akshat) {
    cout << "Akshat";
  } else {
    cout << "Malvika";
  }
  return 0;
}
