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