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