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