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