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