#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  bool first = true;
  int less;
  less = (n <= m ? n : m);
  cout << (less % 2 ? "Akshat" : "Malvika");
  return 0;
}
