#include <bits/stdc++.h>
using namespace std;
int N, M;
int main() {
  cin >> N >> M;
  int k = min(N, M);
  if (k % 2 == 0)
    cout << "Malvika" << endl;
  else
    cout << "Akshat" << endl;
  return 0;
}
