#include <bits/stdc++.h>
int main(void) {
  unsigned int n, m;
  scanf("%d %d", &n, &m);
  unsigned int points = m * n;
  unsigned int moves = 0;
  while (points != 0) {
    points -= (m + n - 1);
    m--;
    n--;
    moves++;
  }
  (moves % 2 != 0) ? printf("Akshat\n") : printf("Malvika\n");
  return 0;
}
