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