#include <bits/stdc++.h>
void init_code() {}
int main() {
  init_code();
  using namespace std;
  using ll = long long;
  int rows, cols;
  cin >> rows >> cols;
  int count = 0;
  count = min(rows, cols);
  if (count % 2 != 0)
    cout << "Akshat\n";
  else
    cout << "Malvika\n";
}
