#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i;
  cin >> m >> n;
  n = min(n, m);
  if (n % 2 == 0)
    cout << "Malvika" << endl;
  else
    cout << "Akshat" << endl;
  return 0;
}
