#include <bits/stdc++.h>
int main() {
  int m, n;
  scanf("%d%d", &m, &n);
  int c = 0;
  while (m * n > 0) {
    m--;
    n--;
    c++;
  }
  if (c & 1)
    printf("Akshat");
  else
    printf("Malvika");
}
