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