#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int intersection = n * m;
  int turn = 0;
  while (n > 1 && m > 1) {
    intersection -= (n + m - 1);
    n--;
    m--;
    turn++;
  }
  if (n == 1 && m == 1 && turn % 2 == 0) {
    cout << "Akshat" << endl;
  } else if (n == 1 && m == 1 && turn % 2 != 0) {
    cout << "Malvika" << endl;
  } else if ((n != 1 || m != 1) && turn % 2 == 0) {
    cout << "Akshat" << endl;
  } else {
    cout << "Malvika" << endl;
  }
  return 0;
}
