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