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