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