#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, m;
  cin >> n >> m;
  long long int total, a = n, b = m, i = 0;
  while (total != 0) {
    if (n == 1 && m == 1) {
      cout << "Akshat";
      break;
    }
    --a;
    --b;
    total = a * b;
    ++i;
    if (total == 0) {
      if (i % 2 == 0) {
        cout << "Malvika";
      } else {
        cout << "Akshat";
      }
      break;
    }
  }
}
