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