#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  int a;
  cin >> t >> a;
  if (a <= t) {
    if (a % 2 == 0)
      cout << "Malvika";
    else
      cout << "Akshat";
  }
  if (a > t) {
    if (t % 2 == 0)
      cout << "Malvika";
    else
      cout << "Akshat";
  }
}
