#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, m;
  cin >> n >> m;
  int intersection_p = n * m;
  int count = 1;
  while (intersection_p > 0) {
    intersection_p = intersection_p - (n + m - 1);
    n--;
    m--;
    count++;
  }
  if (count % 2)
    cout << "Malvika" << endl;
  else
    cout << "Akshat" << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    solve();
  }
}
