#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, x = 0;
  cin >> n >> m;
  int a[n][m];
  for (int i = 0, j = 0; i < min(n, m); i++, j++) x++;
  if (x % 2 == 0)
    cout << "Malvika";
  else
    cout << "Akshat";
}
