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