using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string tmp = Console.ReadLine();
            var n = int.Parse(tmp.Split(' ')[0]);
            var m = int.Parse(tmp.Split(' ')[1]);
            n = n < m ? n : m;

            Console.WriteLine(n % 2 == 1 ? "Akshat" : "Malvika");
            //Console.ReadKey();
        }
    }
}

using System;

namespace _451A
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            int min = int.Parse(input[0]);
            int cur = int.Parse(input[1]);
            if (cur < min) min = cur;
            if (min % 2 == 1) Console.WriteLine("Akshat");
            else Console.WriteLine("Malvika");
        }
    }
}

using System;
namespace codeCsharp
{
    class Program
    {
        static void Main(string[] args)
        {
            int n,m,i=1;Int32 NoSticks,NoPoints;
            string[] input = Console.ReadLine().Split();
            n = int.Parse(input[0]);
            m = int.Parse(input[1]);
            NoSticks=n+m;
            NoPoints=n*m;
            while(NoPoints>0){
            NoPoints-=(NoSticks-1);
            NoSticks-=2;
            i++;
            if(NoPoints==0){
                string output = i % 2 == 0 ? "Akshat" : "Malvika";
                Console.Write(output);
            break;}
}
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace A.Game_With_Sticks
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            int n = int.Parse(input.Split(' ')[0]);
            int m = int.Parse(input.Split(' ')[1]);
            int p = (n > m) ? m : n;
            if (p % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }
        }
    }
}

using System;
 class Program
    {
        static void Main(string[] args)
        {
            string [] s = Console.ReadLine().Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries);
            byte a = byte.Parse(s[0]);
            byte b = byte.Parse(s[1]);
            s = null;
            byte c = a < b ? a : b;
            Console.WriteLine(c % 2 == 0 ? "Malvika" : "Akshat");
        }
    }

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();

            int n = Convert.ToInt32(s[0]);
            int m = Convert.ToInt32(s[1]);

            int sum = n + m - 1;
            int point = n * m;
            int count = 1;

            while (point - sum > 0)
            {
                point -= sum;
                n--;
                m--;
                sum = n + m - 1;
                count++;
            }

            if (count % 2 == 0) Console.WriteLine("Malvika");
            else Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;

namespace Codeforces
{
	internal class Template
	{
		private static readonly Scanner cin = new Scanner();

		private static void Main()
		{
#if !ONLINE_JUDGE
			//Console.SetIn(new StreamReader(@"C:\CodeForces\input.txt"));
#endif
			new Template().Solve();
			Console.ReadLine();
		}

		private void Solve()
		{
			var n = cin.NextInt();
			var m = cin.NextInt();
			var min = Math.Min(n, m);
			if ((min & 1) == 0)
			{
				Console.WriteLine("Malvika");
			}
			else
			{
				Console.WriteLine("Akshat");
			}
		}
	}

	internal class Scanner
	{
		private string[] s = new string[0];
		private int i;
		private readonly char[] cs = { ' ' };

		public string NextString()
		{
			if (i < s.Length) return s[i++];
			var line = Console.ReadLine() ?? string.Empty;
			s = line.Split(cs, StringSplitOptions.RemoveEmptyEntries);
			i = 1;
			return s.First();
		}

		public double NextDouble()
		{
			return double.Parse(NextString());
		}

		public int NextInt()
		{
			return int.Parse(NextString());
		}

		public long NextLong()
		{
			return long.Parse(NextString());
		}
	}
}

using System;

namespace Algorithms
{
    class Program
    {
        static void Main(string[] args)
        {
            GameOfSticks();

            //Console.ReadLine();
        }

        private static void GameOfSticks()
        {
            string[] sticks = Console.ReadLine().Split(' ');
            int hotizontalSticks = int.Parse(sticks[0]);
            int verticalSticks = int.Parse(sticks[1]);

            var totalNumberOfCrossPoints = hotizontalSticks * verticalSticks;

            string winner = "Akshat";

            for (int i = totalNumberOfCrossPoints; i >= 0; i--)
            {
                totalNumberOfCrossPoints = --hotizontalSticks * --verticalSticks;

                if (totalNumberOfCrossPoints == 0)
                {
                    break;
                }
                else
                {
                    if (winner == "Akshat")
                        winner = "Malvika";
                    else if (winner == "Malvika")
                        winner = "Akshat";
                }
            }

            Console.WriteLine(winner);
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Training_App
{
    class Program
    {

        static void Main(string[] args)
        {
            String input = Console.ReadLine();
            String[] splits = input.Split(' ');
            int n = int.Parse(splits[0]);
            int m = int.Parse(splits[1]);
            int result = 0;
            if (n > m)
                result = m * m;
            else
                result = n * n;
            if (result % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
        }
        }
    }

using System;
using System.Linq;

class A451 {
    public static void Main() {
        var min = Console.ReadLine().Split().Min(int.Parse);
        Console.WriteLine((min & 1) == 0 ? "Malvika" : "Akshat");
    }
}

using System;
using System.Collections.Generic;
using System.Linq;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            byte[] inputs = Console.ReadLine().Split(' ').Select(input => Convert.ToByte(input)).ToArray();
            byte n = inputs[0];
            byte m = inputs[1];

            List<byte[]> values = new List<byte[]>();
            for (byte i = 0; i < n; i++)
            {
                for (byte j = 0; j < m; j++)
                {
                    byte[] item = new byte[]{i,j};
                    values.Add(item);
                }
            }

            byte flag = 2;
            while(values.Count != 0)
            {
                byte[] value = values[0];
                values.RemoveAt(0);

                RemoveValues(values, value[0], value[1]);
                if (flag == 1)
                    flag = 2;
                else
                    flag = 1;
            }
            if (flag == 1)
                Console.WriteLine("Akshat");
            else
                Console.WriteLine("Malvika");
        }

        private static void RemoveValues(List<byte[]> values, byte i, byte j)
        {
            for (int k = 0; k < values.Count; k++)
            {
                byte[] value = values[k];
                if (value[0] == i || value[1] == j)
                {
                    values.RemoveAt(k);
                    k--;
                }
            }
        }

    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace A
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str = Console.ReadLine().Split(' ');
            int n = int.Parse(str[0]);
            int m = int.Parse(str[1]);
            int a = 0, m1 = m, n1 = n, sum = m * n;
            while (true)
            {
                if (sum - m1 - n1 + 1 <= 0)
                {
                    if (a % 2 == 0) Console.WriteLine("Akshat");
                    else Console.WriteLine("Malvika");
                    break;
                }
                sum -= m1 + n1 - 1;
                n1--;
                m1--;
                a++;
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string[] ss = s.Split(' ');
            int n = Convert.ToInt32(ss[0]);
            int m = Convert.ToInt32(ss[1]);
            int i = 0; int c=n*m;
            while(i<c)
            { i++;
                c-=m-i+n-i;

            }
            if (i % 2 == 0) { Console.WriteLine("Malvika"); }
            else Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {

            int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int min = Math.Min(a[0], a[1]);
            if (min % 2 == 0) Console.WriteLine("Malvika");
            else Console.WriteLine("Akshat");

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _451A
{
    class Program
    {
        static void Main(string[] args)
        {
            string userInput;
            string[] userInputArray;
            int n;
            int m;
            bool isAkshatTurn;

            userInput = Console.ReadLine();
            userInputArray = userInput.Split(' ');
            n = Int32.Parse(userInputArray[0]);
            m = Int32.Parse(userInputArray[1]);

            isAkshatTurn = true;
            while (TakeOut(ref n, ref m))
            {
                isAkshatTurn = !isAkshatTurn;
                //Console.WriteLine("n = {0}, m = {1}", n, m);
            }
            if (!isAkshatTurn)
            {
                Console.WriteLine("Akshat");
            }
            else
            {
                Console.WriteLine("Malvika");
            }

            Console.ReadLine();
        }

        static Boolean TakeOut(ref int n, ref int m)
        {
            if (n <= 0 || m <= 0)
            {
                return false;
            }
            n -= 1;
            m -= 1;
            return true;
        }
    }
}

using System;
using System.Linq;
namespace ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            int min = Console.ReadLine().Split().Select(int.Parse).Min();
            Console.WriteLine(min % 2 == 0 ? "Malvika" : "Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication92
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);

            if (n <= m && n % 2 == 0 || m <= n && m % 2 == 0) Console.WriteLine("Malvika");
            else Console.WriteLine("Akshat");
        }
    }
}

using System;
    using System.Collections.Generic;
    using System.Globalization;
    using System.Linq;
    using System.Text;

    public class Program
    {
        public static void Main(string[] args)
        {
            var arr = Console.ReadLine().Split();
            var n = int.Parse(arr[0]);
            var m = int.Parse(arr[1]);

            if (n > m)
            {
                if (m % 2 == 0)
                {
                    Console.WriteLine("Malvika");
                }
                else
                {
                    Console.WriteLine("Akshat");
                }
            }
            else
            {
                if (n % 2 == 0)
                {
                    Console.WriteLine("Malvika");
                }
                else
                {
                    Console.WriteLine("Akshat");
                }
            }

        }
    }

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace a
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str = Console.ReadLine().Split(' ');
            int x = int.Parse(str[0]);
            int y = int.Parse(str[1]);
            int min = Math.Min(x, y);
            int ans = min % 2;
            if (ans == 1)
            {
                Console.WriteLine("Akshat");
            }
            else
            {
                Console.WriteLine("Malvika");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Game_With_Sticks
{
    class Program
    {
        static void Main(string[] args)
        {
            int n, m;
            string  [] s1=new string [2];
             s1 = Console.ReadLine().Split(' ');
             n = int.Parse(s1[0]);
             m = int.Parse(s1[1]);
             //Console.WriteLine(n);
            // Console.WriteLine(m);
            int total = n + m;
            int product = n * m;
            int i;
            for (  i = 0; i < 1100; i++)
            {
                n--;
                m--;
                total = n + m;
                product = n * m;
                if (product==0)
                {
                    break;
                }

            }
            if (i % 2 != 0)
            {
                Console.WriteLine("Malvika");
            }
            else
                Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Linq;

namespace Codeforces
{
  class Program
  {
    static void Main(string[] args)
    {
      int[] nm = Console.ReadLine()
                        .Split(' ')
                        .Select(x => Int32.Parse(x))
                        .ToArray();

      int min = Math.Min(nm[0], nm[1]);

      Console.WriteLine(min % 2 == 0 ? "Malvika" : "Akshat");
    }
  }
}

using System;
class Program
    {
        static void Main(string[] args)
        {
            int[] ar = new int[2];
            {
                string[] input = Console.ReadLine().Split(new char[] { ' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
                ar[0] = int.Parse(input[0]);
                ar[1] = int.Parse(input[1]);
            }
            Array.Sort(ar);
            Console.WriteLine(ar[0] % 2 == 1 ? "Akshat" : "Malvika");
        }
    }

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LearningCSharp
{
    class _451A
    {
        static void Main(string [] args) {

            int[] ar = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            Array.Sort(ar);
            int temp = ar[0];
            if (temp % 2 == 0) { Console.WriteLine("Malvika"); }
            else { Console.WriteLine("Akshat"); }
            //Console.ReadKey();

        }

    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Game_Wich_Sticks_451A
{
    class Program
    {
        static void Main(string[] args)
        {
            string [] s = Console.ReadLine().Split(new char [] {' '});
            int n = Convert.ToInt32(s[0]), m = Convert.ToInt32(s[1]);
            int ka = 0, km = 0;
            while (n*m != 0)
            {
                n = n - 1;
                m = m - 1;
                if (ka == km) ka++;
                else km++;
            }
            if (ka == km) Console.WriteLine("Malvika");
            else Console.WriteLine("Akshat");

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SolvingAlgorithms
{
    class Program
    {
        static void Main(string[] args)
        {
            String in1;
            int inp1, inp2;
            in1 = Console.ReadLine();
            String[] temp = in1.Split(' ');

            inp1 = Convert.ToInt32(temp[0]);
            inp2 = Convert.ToInt32(temp[1]);

            String output = "Malvika";
            while (true)
            {
                if (inp1 == 0 || inp2 == 0)
                {
                    break;
                }
                inp1--;
                inp2--;
                if (output == "Malvika")
                {
                    output = "Akshat";
                }
                else
                {
                    output = "Malvika";
                }

            }
            Console.WriteLine(output);
        }
    }
}

using System;

public class Program
{
    static public void Main()
    {
        string[] s = Console.ReadLine().Split();
        int n = int.Parse(s[0]);
        int m = int.Parse(s[1]);
        int min = Math.Min(n, m);
        if (min % 2 == 0) Console.WriteLine("Malvika");
        else Console.WriteLine("Akshat");
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeForces_451A_Game_With_Sticks
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] num = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            int n = num[0];
            int m = num[1];
            if (Math.Min(n, m) % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
            //Console.ReadLine();
        }
    }
}

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

namespace ConsoleApplication1
{
    class Program
    {
        private static void MyMain()
        {
            int x = 0;
            int y = 0;
            RInts(out x, out y);

            WLine(Math.Min(x,y)%2 == 0? "Malvika":"Akshat");

        }

        static void Main()
        {
#if !HOME
            MyMain();
#else
            var tmp = Console.In;
            Console.SetIn(new StreamReader("in.txt"));
            while (Console.In.Peek() > 0)
            {
                MyMain();
            }
            Console.In.Close();
            Console.SetIn(tmp);
            Console.ReadKey();
#endif
        }

        #region Utils
        static string RLine()
        {
            return Console.ReadLine();
        }

        static int RInt()
        {
            var str = Console.ReadLine();
            return Convert.ToInt32(str);
        }

        static int[] RInts()
        {
            return Array.ConvertAll(Console.ReadLine().Split(' '), s => Convert.ToInt32(s));
        }

        static void RInts(out int a, out int b)
        {
            var ints = RInts();
            a = ints[0];
            b = ints[1];
        }

        static void WLine<T>(T s)
        {
            Console.WriteLine(s);
        }

        static void WYES()
        {
            WLine("YES");
        }

        static void WNO()
        {
            WLine("NO");
        }
        #endregion
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ladder4
{
    class Prob12
    {
        static void Main(string[] args)
        {
            List<int> matrix = Console.ReadLine().Split(' ').Select(alias => int.Parse(alias)).ToList();
            int count = 1, x = matrix[0] * matrix[1], r = matrix[0], c = matrix[1];
            bool result = harankash(r, c);
            if (result == true)
                Console.WriteLine("Akshat");
            else
                Console.WriteLine("Malvika");
            //for (int i = 0; i < r + c; i++)
            //{
            //    if (x < 0)
            //        break;
            //    if (Math.Min(r, c) == 0)
            //        x--;
            //    else
            //    {
            //        x -= (r + c) - 1;
            //        r = r - 1;
            //        c = c - 1;
            //    }
            //    if (x > 0)
            //        count++;
            //}
            //if (count % 2 == 0)
            //    Console.WriteLine("Malvika");
            //else
            //    Console.WriteLine("Akshat");
            //while (true) ;
        }

        public static bool harankash(int r, int c)
        {
            if (Math.Min(r, c) <= 1)
                return true;
            else if (r == 2 || c == 2)
                return false;

            return !harankash(r - 1, c - 1);
        }
    }
}

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int[] array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();

        if(array.Min()%2==0)
            Console.WriteLine("Malvika");
        else
            Console.WriteLine("Akshat");
    }
}

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Numerics;

namespace ConsoleApplication5
{

    class Program
    {

        static void Main()
        {
            var data = Console.ReadLine()
                .Split(new[] { ' ' })
                .Select(int.Parse)
                .ToArray();
            int n = data[0], m = data[1], count = n * m, moveCount = 0;
            while (count > 0)
            {
                count -= n;
                count -= m;
                count++;
                n--;
                m--;
                moveCount++;
            }
            Console.WriteLine(moveCount % 2 == 0 ? "Malvika" : "Akshat");
        }
    }
}

namespace o
{
    using System;

    class Program
    {
        static void Main(string[] args)
        {
            string[] s1 = Console.ReadLine().Split(' ');
            int a = int.Parse(s1[0]);
            int b = int.Parse(s1[1]);
            if (a > b)
            {
                a = b;
            }
            if (a % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _259
{

    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int n = Convert.ToInt32(s[0]);
            int m = Convert.ToInt32(s[1]);

            if (Math.Min(n, m) % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            var s = Console.ReadLine().Split(' ');

            int n = int.Parse(s[0]),
                m = int.Parse(s[1]),
                t = n * m,
               a = 0;

            while (true)
            {
                if (t != 0)
                {
                    t = --n * --m;
                    a++;
                }
                else break;
            }

            if (a % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contesa
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] arr = Console.ReadLine().Split().Take(2).Select(int.Parse).ToArray();
            if (arr[0] <= arr[1] && arr[0]%2==1)
                Console.WriteLine("Akshat");
            else if (arr[1] < arr[0] && arr[1] % 2 == 1)
                Console.WriteLine("Akshat");
            else
                Console.WriteLine("Malvika");

        }

    }
}

using System;

namespace _451A
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(new char[]{ ' ' });

            int n = int.Parse(input[0]);
            int m = int.Parse(input[1]);

            int min = Math.Min(n, m);

            if (min % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameWithSticks
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] data = Array.ConvertAll(Console.ReadLine().Split(' '), s => Int32.Parse(s));

            if ((data[1] < data[0] ? data[1] : data[0]) % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }

        }
    }
}

using System;

class Program
{
    static void Main(string[] args)
    {
        int[] input = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
        int minimum = input[0] > input[1] ? input[1] : input[0];

        if (minimum % 2 == 0) Console.WriteLine("Malvika");
        else Console.WriteLine("Akshat");
    }
}

using System;
using System.Collections.Generic;
using System.IO;

namespace prA {

    class Program {
#if ONLINE_JUDGE
        private static readonly StreamReader reader = new StreamReader(Console.OpenStandardInput(1024 * 10), System.Text.Encoding.ASCII, false, 1024 * 10);
        private static readonly StreamWriter writer = new StreamWriter(Console.OpenStandardOutput(1024 * 10), System.Text.Encoding.ASCII, 1024 * 10);
#else
        private static readonly StreamWriter writer = new StreamWriter("output");
        private static readonly StreamReader reader = new StreamReader("input");
#endif
        static void Main(string[] args) {
            int n = Math.Min(Next(), Next());
            writer.Write(n % 2 == 1 ? "Akshat" : "Malvika");

            writer.Flush();
#if !ONLINE_JUDGE
            writer.Close();
#endif
        }
        private static int Next() {
            int c;
            int res = 0;
            do {
                c = reader.Read();
                if(c == -1)
                    return res;
            } while(c != '-' && (c < '0' || c > '9'));
            int sign = 1;
            if(c == '-') {
                sign = -1;
                c = reader.Read();
            }
            res = c - '0';
            while(true) {
                c = reader.Read();
                if(c < '0' || c > '9')
                    return res * sign;
                res *= 10;
                res += c - '0';
            }
        }
    }
}

using System;
using System.Linq;

public class Program
{
	public static void Main()
	{
		var name = new[] { "Malvika", "Akshat" };
		int x = Console.ReadLine().Split().Select(int.Parse).Min();
		Console.WriteLine(name[x % 2]);
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] n = Console.ReadLine().Split(' ');
            if (int.Parse(n[0]) < int.Parse(n[1]))
            {
                if (int.Parse(n[0]) % 2 == 0)
                    Console.WriteLine("Malvika");
                else
                    Console.WriteLine("Akshat");
            }
            else
            {
            if (int.Parse(n[1]) % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace codeforces
//#16 Resolve Game With Sticks
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] inputer = Console.ReadLine().Split();
            int input1 = int.Parse(inputer[0]),
                input2 = int.Parse(inputer[1]);

            if (input1 % 2 == 0 && input2 % 2 == 0 || input2> input1 && input1%2==0 && input2%2==1 || input1>input2 && input1%2==1 && input2%2==0)
            {
                Console.WriteLine("Malvika");
                Console.ReadLine();
            }
            else Console.WriteLine("Akshat");
            Console.ReadLine();
        }
    }
}

using System;
using System.Linq;

namespace tren
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            Console.Write(nm.Min() % 2 == 0? "Malvika" : "Akshat");
        }
    }
}

using System;
using System.Linq;

public class GameWithSticks
{
	private static void Main()
	{
		var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
		var n = input[0];
		var m = input[1];
		var matrix = new int[n, m];
		var isAkshat = true;

		while(!IsFinished(matrix, n, m))
		{
			NextMove(matrix, n, m);

			isAkshat = !isAkshat;
		}

		Console.WriteLine(isAkshat ? "Malvika" : "Akshat");
	}

	private static void NextMove(int[,] matrix, int n, int m)
	{
		for (int i = 0; i < n; i++)
		{
			for (int j = 0; j < m; j++)
			{
				if(matrix[i, j] == 0)
				{
					matrix[i, j] = 1;

					for (int l = 0; l < n; l++)
					{
						if(matrix[l, j] == 0)
						{
							matrix[l, j] = 1;
						}
					}

					for (int l = 0; l < m; l++)
					{
						if(matrix[i, l] == 0)
						{
							matrix[i, l] = 1;
						}
					}

					return;
				}
			}
		}
	}

	private static bool IsFinished(int[,] matrix, int n, int m)
	{
		for (int i = 0; i < n; i++)
		{
			for (int j = 0; j < m; j++)
			{
				if(matrix[i, j] == 0)
				{
					return false;
				}
			}
		}

		return true;
	}
}

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
// you can also use other imports, for example:
// using System.Collections.Generic;

// you can use Console.WriteLine for debugging purposes, e.g.
// Console.WriteLine("this is a debug message");

class Solution
{

    public static void Main(string[] args)
    {
        var v = Console.ReadLine().Split(' ');
        int n, m;
        n = int.Parse(v[0]);
        m = int.Parse(v[1]);
        int moves = Math.Min(n, m);
        Console.WriteLine(moves % 2 == 0 ? "Malvika" : "Akshat");

    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            int m = 0, n = 0;
            for (int i = 0; i < s.Length; i++)
            {
                if (s[i] == ' ')
                {
                    n = int.Parse(s.Substring(0, i));
                    m = int.Parse(s.Substring(i + 1));
                    break;
                }
            }
            if (m < n)
                n = m;
            if (n % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
                Console.WriteLine("Akshat");
        }
    }
}

using System;

namespace Algo.Problem._258_2_1
{
	internal class Program
	{
		private static void Main(string[] args)
		{
			string s = Console.ReadLine();

			string[] ss = s.Split(' ');

			int n = int.Parse(ss[0]);
			int m = int.Parse(ss[1]);

			int min = n < m ? n : m;

			if (min%2 == 1)
				Console.WriteLine("Akshat");
			else
			{
				Console.WriteLine("Malvika");
			}

//			Console.ReadLine();
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ASM
{
    class Program
    {
        static void Main(string[] args)
        {
            //Math.Abs(3-(rowIndex))+Math.Abs(3-columnIndex)
            int[] line = Console.ReadLine().Split(' ').Select(x => Int32.Parse(x)).ToArray<int>();
            int n = line[0];
            int m = line[1];
            int pointsEachTurn = n + m - 2 + 1;
            int totalPoints = n * m;
            int winner = 0;
            string[] names = { "Akshat", "Malvika" };
            while(totalPoints > 0)
            {
                //Console.WriteLine("Removing {0}", pointsEachTurn);
                totalPoints -= pointsEachTurn;
                n--;
                m--;
                pointsEachTurn = n + m - 2 + 1;
                if (totalPoints > 0)
                {
                    if (winner == 0) winner = 1;
                    else winner = 0;
                }
            }
            Console.WriteLine(names[winner]);
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
namespace ConsoleApp1
{
    class Program
    {

        static void Main(string[] args)
        {
         string[] s = Console.ReadLine().Split(' ');
         int a1 = Convert.ToInt32(s[0]);
         int a2 = Convert.ToInt32(s[1]);
         if (a1<=a2)
            if (a1%2==0)
                Console.WriteLine("Malvika");
                else
                Console.WriteLine("Akshat");
        else
            if (a2%2==0)
                Console.WriteLine("Malvika");
                else
                Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Numerics;

namespace WarmingUpC_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] dims = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            Console.WriteLine(Math.Min(dims[0], dims[1]) % 2 == 0 ? "Malvika" : "Akshat");
        }
    }
}

using System;
using System.Linq;

namespace _451A_GameWithSticks
{
    class Program
    {
        static void Main(string[] args)
        {
            var mass = Console.ReadLine()
            .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
            .Select(x => int.Parse(x))
            .ToArray();

            int temp = 0;
            int intersection = mass[0] * mass[1];

            do
            {
                mass[0]--;
                mass[1]--;

                intersection = mass[0] * mass[1];
                temp++;
            }
            while (intersection > 0);

            Console.WriteLine(temp % 2 == 0 ? "Malvika" : "Akshat");
        }
    }
}

using System;
using System.Linq;
class Program
{
    static void Main()
    {
        var nm = Console.ReadLine().Split().Select(int.Parse).ToArray();
        Console.WriteLine(Math.Min(nm[0], nm[1]) % 2 == 1 ? "Akshat" : "Malvika");
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeForces_451A
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] names = { "Malvika", "Akshat" };
            string[] tmPstr = Console.ReadLine().Split(' ');
            int n = int.Parse(tmPstr[0]);
            int m = int.Parse(tmPstr[1]);
            int winner = 1;
            if (n > m)
            {
                if (m == 0)
                {
                    winner = m;
                }
                else
                {
                }
                winner = m % 2;
            }
            else
            {
                if (n == 0)
                {
                    winner = n;
                }
                else
                {
                }
                winner = n % 2;
            }
            Console.WriteLine(names[winner]);
        }
    }
}

using System;
using System.Linq;

namespace Codility
{
    class Program
    {
        public static string codeforce(long n, long m)
        {
            if (Math.Min(n, m) % 2 == 0)
                return "Malvika";
            return "Akshat";
        }
        static void Main(string[] args)
        {
            var nums = Console.ReadLine().Split().Select(long.Parse).ToArray();
            //var arr = Console.ReadLine().Split().Select(long.Parse).ToArray();
            Console.WriteLine(codeforce(nums[0], nums[1]));
            //Console.WriteLine(solution1(-1, 3, 3, 1));
            //Console.WriteLine(solution("banana"));

            Console.ReadLine();
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _451A.Game_With_Sticks
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] line = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int n = line[0];
            int m = line[1];
            int min = -1;
            if (n > m)
                min = m;
            else
                min = n;
            if (min % 2 != 0)
                Console.WriteLine("Akshat");
            else
                Console.WriteLine("Malvika");
        }
    }
}

using System;
using System.Linq;

namespace A451
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] input = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
            int[,] matrix = new int[input[0], input[1]];

            for (int i = 0; i < input[0]; i++)
            {
                for (int j = 0; j < input[1]; j++)
                {
                    matrix[i, j] = i + j + 1;
                }
            }

            int count = 0;
            for (int i = 0; i < input[0]; i++)
            {
                for (int j = 0; j < input[1]; j++)
                {
                    if(matrix[i, j] != 0)
                    {
                        count++;
                        for (int e = 0; e < input[1]; e++)
                        {
                            matrix[i, e] = 0;
                        }
                        for (int e = 0; e < input[0]; e++)
                        {
                            matrix[e, j] = 0;
                        }
                        break;
                    }
                }
            }
            Console.WriteLine(count % 2 == 0 ? "Malvika" : "Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static int[] ReadInt(int size)
        {
            string[] input = Console.ReadLine().Split(' ');
            int[] res = new int[size];
            for (int i=0; i<input.Length; i++)
            {
                res[i] = Convert.ToInt32(input[i]);
            }
            return res;
        }

        static int ReadInt()
        {
            int n = Convert.ToInt32(Console.ReadLine());
            return n;
        }

        static String ReadString()
        {
            return Console.ReadLine();
        }

        static int Max(int a, int b)
        {
            return (a > b ? a : b);
        }

        static void WL<T> (T s)
        {
            Console.WriteLine(s);
        }

        static void Main(string[] args)
        {
            int[] input = ReadInt(2);
            int m = Math.Min(input[0], input[1]);
            if (m % 2 == 0) WL("Malvika"); else WL("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _451A_Game_With_Sticks
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split();
            int n = int.Parse(input[0]);
            int m = int.Parse(input[1]);

            if (Math.Min(n,m) % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Olimp
{
    class Program
    {
        public static void Main(string[] arg)
        {
            string[] m = Console.ReadLine().Split();
            Console.WriteLine(Result(int.Parse(m[0]), int.Parse(m[1])));
        }

        public static string Result(int N, int M)
        {
            string Res = ""; int k = 0;
            while (N > 0 && M > 0)
            {
                N--; M--; k++;
                if (N == 0 || M == 0) break;
            }
            if (k % 2 == 1)
                Res = "Akshat";
            else
                Res = "Malvika";
            return Res;
        }
    }
}

class Program{static void Main(){string[] into = System.Console.ReadLine().Split(' ');byte i,n = byte.Parse(into[0]) , m = byte.Parse(into[1]);for (i = 1; n > 0 && m > 0; --n, --m, ++i) { }System.Console.WriteLine(i % 2 == 0 ? "Akshat" : "Malvika");}}

#region imports
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;

#endregion

namespace CodeForces
{
    class Problem
    {
        const bool IsContest = true;

        private void Solve()
        {
            var n = _.NextInt();
            var m = _.NextInt();
            var akshatWins = false;
            while (n > 0 && m > 0)
            {
                n--;
                m--;
                akshatWins ^= true;
            }
            _.WriteLine(akshatWins ? "Akshat" : "Malvika");
        }

        #region shit
        private readonly InOut _ = new InOut(IsContest);
        static void Main(string[] args)
        {
            var p = new Problem();
            p.Solve();
            p._.Close();
        }
    }
    class InOut
    {
        private const string InputFile = "input.txt";
        private const string OutputFile = "output.txt";
        public StreamWriter Cout { get; private set; }
        public StreamReader Cin { get; private set; }
        private void SetConsoleIo()
        {
            Cin = new StreamReader(new BufferedStream(Console.OpenStandardInput()));
            Cout = new StreamWriter(new BufferedStream(Console.OpenStandardOutput()));
        }
        private void SetFileIo(string inputFile, string outputFile) { Cin = new StreamReader(inputFile); Cout = new StreamWriter(outputFile); }
        public InOut() { SetConsoleIo(); }
        public InOut(string inputFile, string outputFile) { SetFileIo(inputFile, outputFile); }
        public InOut(bool isContest) { if (isContest) SetConsoleIo(); else SetFileIo(InputFile, OutputFile); }
        public void WriteLine(object x) { Cout.WriteLine(x); }
        public void Close() { Cin.Close(); Cout.Close(); }
        public void WriteLine(string format, params object[] args) { Cout.WriteLine(format, args); }
        private int _pos;
        private string[] _tokens;
        public string NextToken()
        {
            while (_tokens == null || _pos == _tokens.Length)
            {
                // ReSharper disable once PossibleNullReferenceException
                _tokens = Cin.ReadLine().Split(" \t".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                _pos = 0;
            }
            return _tokens[_pos++];
        }
        public int NextInt() { return int.Parse(NextToken()); }
        public long NextLong() { return long.Parse(NextToken()); }
        public double NextDouble() { return double.Parse(NextToken(), CultureInfo.InvariantCulture); }

        #endregion
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s;
            s = Console.ReadLine().Split(' ');
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);
            m = Math.Min(n, m);
            if (m % 2 == 0) Console.WriteLine("Malvika"); else Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace W2
{
    class Program
    {
        //https://codeforces.com/problemset/problem/1380/A

        static void Main(string[] args)
        {
            string numbers = Console.ReadLine();
            string number = "";
            int n = 0;
            int m = 0;
            for(int x = 0; x< numbers.Length; x++)
            {
                if(numbers[x] == Convert.ToChar(" "))
                {
                    n = Convert.ToInt32(number);
                    number = "";
                }
                else
                {
                    number += numbers[x];
                }
            }
            m = Convert.ToInt32(number);
            if (n % 2 != 0 && n <= m)
            {
                Console.WriteLine("Akshat");
            }
            else if(m % 2 != 0 && m <= n)
            {
                Console.WriteLine("Akshat");
            }
            else
            {
                Console.WriteLine("Malvika");
            }
            Console.ReadLine();
        }

    }
}

using System;

namespace GameWithSticks
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.None);

            int n = int.Parse(input[0]);
            int m = int.Parse(input[1]);

            int min = n > m ? m : n;

            if (min % 2 ==1 ){
                Console.WriteLine("Akshat");
            }else{
                Console.WriteLine("Malvika");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeForces
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] numbers = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
            double inter = numbers[0] * numbers[1];
            int counter = 0;
            while (inter != 0)
            {
                inter = inter - (numbers[0] + numbers[1] - 1);
                numbers[0]--;
                numbers[1]--;
                counter++;
            }
            Console.WriteLine((counter % 2 != 0) ? "Akshat" : "Malvika");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication10
{
    class Program
    {
        static void Main(string[] args)
        {
            int n, m, k = 0;
            string[] s = Console.ReadLine().Split();
            n = int.Parse(s[0]);
            m = int.Parse(s[1]);
            if (n <= m)
            {
                k = n % 2;
            }
            if (m < n)
            {
                k = m % 2;
            }
            int caseSwitch = k;
            switch (caseSwitch)
            {
                case 0:
                    Console.WriteLine("Malvika");
                    break;

                case 1:
                    Console.WriteLine("Akshat");
                    break;
            }
        }
    }
}

using System;
using System.Linq;
using System.Text;

namespace CodeForces
{
	class Program
	{
		public static void Main(string[] args)
		{
			GameWithSticks();
		}
		public static void GameWithSticks(){
			int[] nm = Array.ConvertAll(Console.ReadLine().Split(), x=> Convert.ToInt32(x));
			Array.Sort(nm);
			Console.WriteLine(nm[0] %2 == 0 ? "Malvika":"Akshat");
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication20
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] data = Console.ReadLine().Split(' ');
            int row = int.Parse(data[0]);
            int col = int.Parse(data[1]);

            if (row >= col)
            {
                Print(col);
            }

            else
            {
                Print(row);
            }

        }
        static void Print(int number)
        {
            if (number % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }
        }
    }
}

using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MakeCalendar
{
    public static class MainClass
    {

        static int ReadIntLine()
        {
            return int.Parse(Console.ReadLine());
        }

        static void ReadInt(ref int a)
        {
            a = ReadIntArrayLine()[0];
        }

        static void ReadInts(ref int a, ref int b)
        {
            var x = ReadIntArrayLine();
            a = x[0]; b = x[1];
        }

        static void ReadInts(ref int a, ref int b, ref int c)
        {
            var x = ReadIntArrayLine();
            a = x[0]; b = x[1]; c = x[2];
        }

        static void ReadInts(ref int a, ref int b, ref int c, ref int d)
        {
            var x = ReadIntArrayLine();
            a = x[0]; b = x[1]; c = x[2]; d = x[3];
        }

        static int[] ReadIntArrayLine()
        {
            char[] sep = { ' ' };
            return Console.ReadLine().Split(sep, StringSplitOptions.RemoveEmptyEntries).Select(x => int.Parse(x)).ToArray();
        }

        static void PrintLn(object obj)
        {
            Console.WriteLine(obj.ToString());
        }

        public static string Reverse(string s)
        {
            char[] charArray = s.ToCharArray();
            Array.Reverse(charArray);
            return new string(charArray);
        }

        public static void PrintLnCollection<T>(IEnumerable<T> col)
        {
            PrintLn(string.Join(" ", col));
        }

        public static void PrintLn(params object[] v)
        {
            PrintLnCollection(v);
        }

        public static string ReadLine()
        {
            return Console.ReadLine();
        }

        public static string MySubstring(this string str, int start, int finish)
        {
            return str.Substring(start, finish - start + 1);
        }

        public static bool IsInRange(this int a, int lb, int ub)
        {
            return (a >= lb) && (a <= ub);
        }

        private static void mergeDS(int i, int j, int[] a)
        {
            int t = a[j];
            for (int ii = 0; ii < a.Length; ii++)
            {
                if (a[ii] == t)
                    a[ii] = a[i];
            }
        }

        private static T MyMax<T>(params T[] a)
        {
            return a.Max();
        }

        private static T MyMin<T>(params T[] a)
        {
            return a.Min();
        }

        //----------------------------------------------------------------------------

        static int[,] ans = new int[100, 100];

        static int solve(int i, int j)
        {
            if (ans[i, j] != 0)
                return ans[i, j];
            else
            {
                if (solve(i-1, j - 1) == -1)
                {
                    ans[i, j] = 1;
                    return 1;
                }
                else
                {
                    ans[i, j] = -1;
                    return -1;
                }
            }
        }

        static void Main(string[] args)
        {

            for (int i = 0; i < 100; i++)
            {
                ans[i, 0] = ans[0, i] = 1;
            }

            int r = 0, c = 0;

            ReadInts(ref r, ref c);

            r--; c--;

            if (solve(r, c) == 1)
                PrintLn("Akshat");
            else
                PrintLn("Malvika");

        }

    }

}

using System;

class grid {
	public static void Main() {
		var line = Console.ReadLine().Split();
		var n = int.Parse(line[0]);
		var m = int.Parse(line[1]);
		if (Math.Min(n, m) % 2 == 0) {
			Console.WriteLine("Malvika");
		}
		else {
			Console.WriteLine("Akshat");
		}
	}
}

using System;
using System.Linq;

namespace CSharp
{
    public class _451A
    {
        public static void Main(string[] args)
        {
            Console.WriteLine(Console.ReadLine().Split().Select(token => int.Parse(token)).Min() % 2 == 0 ? "Malvika" : "Akshat");
        }
    }
}

// A Dynamic Programming based
// C# program to find minimum
// number operations to
// convert str1 to str2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class GFG
{

    public static void Main()
    {
        ///var t = int.Parse(Console.ReadLine());

        //while (t > 0)
        {
            // t--;
            // var n = int.Parse(Console.ReadLine());
            //var arr = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
            var input = Console.ReadLine().Split();
            var n = int.Parse(input[0]);
            var m = int.Parse(input[1]);
            //var k = int.Parse(input[2]);
            // Split(n, arr);
            if (n > m)
            {
                var tmp = m;
                m = n;
                n = tmp;
            }
            if (n % 2 == 0)
            {
                Console.Write("Malvika");
            }
            else
            {
                Console.Write("Akshat");
            }

        }

    }

}

using System;

 class Program
    {
        static void Main(string[] args)
        {

            string line = Console.ReadLine();
            var numbers = line.Split(' ');
            var x = int.Parse(numbers[0]);
            int y = int.Parse(numbers[1]);

            int intersections = x * y;
            int nTours = intersections / 2;
            if (x == 1 || y ==1)
                Console.WriteLine("Akshat");
            else
            if (x == y || x < y)
            {
                if (x % 2 == 1)
                    Console.WriteLine("Akshat");
                else
                    Console.WriteLine("Malvika");
            }
            else
            if (y < x)
            {
                if (y % 2 == 1)
                    Console.WriteLine("Akshat");
                else
                    Console.WriteLine("Malvika");
            }
        }
    }

using System;
using System.Collections.Generic;

namespace Main
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string[] map = Console.ReadLine().Split(' ');
			int n = Convert.ToInt32(map [0]);
			int m = Convert.ToInt32(map [1]);

			if (n % 2 != 0) {
				Console.WriteLine ("Askhat");
			} else {
				Console.WriteLine ("Malvika");
			}
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Training_App
{
    class Program
    {

        static void Main(string[] args)
        {
            String input = Console.ReadLine();
            String[] splits = input.Split(' ');
            int n = int.Parse(splits[0]);
            int m = int.Parse(splits[1]);

            int result = n * m;
            if (result % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
        }
        }
    }

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace W2
{
    class Program
    {
        //https://codeforces.com/problemset/problem/1380/A

        static void Main(string[] args)
        {
            string numbers = Console.ReadLine();
            string number = "";
            bool first = true;
            int n = 0;
            int m = 0;
            for(int x = 0; x< numbers.Length; x++)
            {
                if(numbers[x] == Convert.ToChar(" "))
                {
                    if (first)
                    {
                        n = Convert.ToInt32(number);
                    }
                    else
                    {
                        m = Convert.ToInt32(number);
                    }
                    first = false;
                    number = "";
                }
                else
                {
                    number += numbers[x];
                }
            }

            if (n % 2 != 0 && n >= m)
            {
                Console.WriteLine("Akshat");
            }
            else
            {
                Console.WriteLine("Malvika");
            }
            Console.ReadLine();
        }

    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {

        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);
            if ((n * m) % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string[] ss = s.Split(' ');
            int n = Convert.ToInt32(ss[0]);
            int m = Convert.ToInt32(ss[1]);
            int i = 0; int c=n*m;
            while(i<c)
            { i++;
                c-=m-i+n-i;

            }
            if (i % 2 == 0) { Console.WriteLine("Malvik"); }
            else Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _451A
{
    class Program
    {
        static int max(int a, int b)
        {
            if (a > b) { return (a); }
            else
            {
                return b;
            }
        }
        static int min(int a, int b)
        {
            if (a < b) { return (a); }
            else
            {
                return b;
            }
        }
        static void Main(string[] args)
        {
            string[] str = (Console.ReadLine()).Split(' ');
            int a = Convert.ToInt32(Console.ReadLine());
            int b = Convert.ToInt32(Console.ReadLine());
            int n = min(a, b);
            int m = max(a, b);
            if (n % 2 == 0) { Console.WriteLine("Malvika"); } else
            {
                Console.WriteLine("Akshat");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication10
{
    class Program
    {
        static void Main(string[] args)
        {
            int n, m, k;
            string[] s = Console.ReadLine().Split();
            n = int.Parse(s[0]);
            m = int.Parse(s[1]);
            k = (n * m) % 2;
		    int caseSwitch =k;
            switch (caseSwitch)
            {
                case 0:
                    Console.WriteLine("Malvika");
                    break;

                case 1:
                    Console.WriteLine("Akshat");
                    break;
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _451A
{
    class Program
    {
        static void Main(string[] args)
        {
            string str = Console.ReadLine();
            int n = Convert.ToInt32(str.Split(' ')[0]);
            int m = Convert.ToInt32(str.Split(' ')[1]);

            if ((n * m) > 2)
            {
                if ((n * m) % 2 == 0)
                {
                    Console.Write("Malvika");
                }
                else
                {
                    Console.Write("Akshat");
                }
            }
            else
            {
                Console.Write("Akshat");
            }
            Console.ReadLine();
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine(); string[] arr=s.Split(' ');
            double n = Math.Ceiling((double.Parse(arr[0])*double.Parse(arr[1]))/3);
            Console.Write((n % 2 == 0) ? "Malvika" : "Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string[] ss = s.Split(' ');
            int n = Convert.ToInt32(ss[0]);
            int m = Convert.ToInt32(ss[1]);
            int i = 0; int c=n*m;
            while(i<c)
            {
                c -= m;
            i++;
            }
            if (i % 2 == 0) { Console.WriteLine("Malika"); }
            else Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ladder4
{
    class Prob12
    {
        static void Main(string[] args)
        {
            List<int> matrix = Console.ReadLine().Split(' ').Select(alias => int.Parse(alias)).ToList();
            int count = 1, x = matrix[0] * matrix[1], r = matrix[0], c = matrix[1];
            for (int i = 0; i < matrix.Count * 2; i++)
            {
                if (x < 0)
                    break;
                if (Math.Min(r, c) == 0)
                    x--;
                else
                {
                    x -= (r + c - 1);
                    r = r - 1;
                    c = c - 1;
                }
                if (x > 0)
                    count++;
            }
            if (count % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
            //while (true) ;
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CA
{
    class Program
    {
        static void Main(string[] args)
        {
            int n, m;
            string []str = Console.ReadLine().Split(' ');
            n = Convert.ToInt32(str[0],10);
            m = Convert.ToInt32(str[1], 10);

            if (n >= 1 && m <= 100)
            {
                int kol = m * n;
                bool f = false;
                int k  = 0;
                while (kol > 1)
                {
                    kol = --n + --m;
                    if (k % 2 == 0)
                        f = false;
                    else
                        f = true;
                                        k++;
                }
            if(f && k > 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

               string Input;
                Input = Console.ReadLine();
                string[] splitString = Input.Split(' ');
                int stickNumber1, stickNumber2, TotalNUmberOFsticks, counter = 0;
                stickNumber1 = Convert.ToInt32(splitString[0]);
                stickNumber2 = Convert.ToInt32(splitString[1]);
                TotalNUmberOFsticks = stickNumber1 + stickNumber2;
           while(true)
           {
               if (TotalNUmberOFsticks < 2)
                   break;

               TotalNUmberOFsticks -= 2;
               counter++;

           }

           if (counter % 2 == 0)
               Console.WriteLine("Malvika");
            else
               Console.WriteLine("Akshat");

        }
    }
}

using System;

public class Program
{
    static public void Main()
    {
        string[] s = Console.ReadLine().Split();
        int n = int.Parse(s[0]);
        int m = int.Parse(s[1]);
        if ((n * m) % 2 == 0) Console.WriteLine("Malvika");
        else Console.WriteLine("Akshat");
    }
}

using System;

namespace GameWithSticks
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split();

            int a = Convert.ToInt32(input[0]);
            int b = Convert.ToInt32(input[1]);

            int w = 0;

            while(a != 0 && b != 0)
            {
                a--;
                b--;

                if (w == 0) w = 1; else w = 0;
            }

            if(w == 0) Console.WriteLine("Akshat"); else Console.WriteLine("Malvika");

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine(); string[] arr=s.Split(' ');
            int n = int.Parse(arr[0]), m = int.Parse(arr[1]);
            Console.Write(((n*m) % 2 == 0) ? "Malvika" : "Akshat");
        }
    }
}

using System;

namespace ForFun
{
	class Codeforces
	{
		static void Main()
		{
			int n, m;
			var s = Console.ReadLine().Split(' ');
			n = int.Parse(s[0]);
			m = int.Parse(s[1]);

			if (n * m % 2 == 0)
				Console.WriteLine("Malvika");
			else
				Console.WriteLine("Akshat");
		}
	}

}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            int a = int.Parse(s[0]);
            int b = int.Parse(s[1]);
            int n = a * b;
            if (n / 4 % 2 == 0)
            {
                Console.WriteLine("Akshat");
            }
            else
            {
                Console.WriteLine("Malvika");
            }

        }
    }
}

using System;

    class Program
    {
        static void Main(string[] args)
        {

            string line = Console.ReadLine();
            var numbers = line.Split(' ');
            var x = int.Parse(numbers[0]);
            int y = int.Parse(numbers[1]);

            int intersections = x * y;
            int nTours = intersections / 2;
            if (x == 1 || y ==1)
                Console.WriteLine("Akshat");
            if (nTours % 2 == 1)
                Console.WriteLine("Akshat");
            else
                Console.WriteLine("Malvika");
        }
    }

using System;

namespace CF_StickGame {
    class Program {
        static void Main(string[] args) {
            string[] input = Console.ReadLine().Split();
            int n = Int32.Parse(input[0]);
            int m = Int32.Parse(input[1]);
            if (((m*n) & 1) == 1){
                Console.WriteLine("Akshat");
                return;
            }
            Console.WriteLine("Malvika");
        }
    }
}

using System;
using System.Collections.Generic;

namespace Main
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string[] map = Console.ReadLine().Split(' ');
			int n = Convert.ToInt32(map [0]);
			int m = Convert.ToInt32(map [1]);

			if ((n % 2 != 0 && m % 2 == 2) || n == 1 || m == 1) {
				Console.WriteLine ("Akshat");
			} else {
				Console.WriteLine ("Malvika");
			}
		}
	}
}

using System;
using System.Collections.Generic;

namespace Main
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string[] map = Console.ReadLine().Split(' ');
			int n = Convert.ToInt32(map [0]);
			int m = Convert.ToInt32(map [1]);

			if (n % 2 != 0) {
				Console.WriteLine ("Askhat");
			} else {
				Console.WriteLine ("Malvika");
			}
		}
	}
}

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int[] n = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray();
        if ((n[0] % 2 == 0) && (n[1] % 2 == 0))
        {
            Console.WriteLine("Malvika");
        }
        else if (((n[0] % 2 == 0) || (n[0] % 2 == 0)))
        {
            Console.WriteLine("Malvika");
        }
        else
        {
            Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Linq;
class Solution
{
    public static void Main(string[] args)
    {
        string[] inp = Console.ReadLine().Split(' ');
        int[] input = Array.ConvertAll(inp, Int32.Parse);
        int n = input[0], m = input[1], stick = n + m;
        while(true)
        {
            if (stick >= 2) stick = stick - 2;
            else
            {
                Console.WriteLine("Malvika");
                break;
            }
            if (stick >= 2) stick = stick - 2;
            else
            {
                Console.WriteLine("Akshat");
                break;
            }
        }
    }

}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);
            if (n == 1 || m == 1)
                Console.WriteLine("Akshat");
            else if ((m+n)/2 % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
        }
    }
}

using System;

public class Test
{
	public static void Main()
	{
		string name1 = "Akshat";
		string name2 = "Malvika";
		bool turn = true;
		string temp = Console.ReadLine();
		string[] tempArr = temp.Split(' ');
		int n = int.Parse(tempArr[0]);
		int m = int.Parse(tempArr[1]);
		int sum = n + m;
		while(sum > 1){
			turn = !turn;
			sum-=2;
		}
		if(turn)
			Console.WriteLine(name2);
			else
			Console.WriteLine(name1);
	}
}

using System;

namespace _451A
{
    class Program
    {
        static void Main()
        {
            var input = Console.ReadLine().Split();
            var n = int.Parse(input[0]);
            var m = int.Parse(input[1]);

            var crosses = n * m;
            Console.WriteLine(crosses % 2 == 0 ? "Malvika" : "Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();

            int n = Convert.ToInt32(s[0]);
            int m = Convert.ToInt32(s[1]);

            if ((n + m - 1) % 2 == 1)
            {
                Console.WriteLine("Akshat");
            }
            else
            {
                Console.WriteLine("Malika");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string[] ss = s.Split(' ');
            int n = Convert.ToInt32(ss[0]);
            int m = Convert.ToInt32(ss[1]);
            int i = 0; int c=n*m;
            while(i<c)
            { i++;
                c-=m-i+n-i;

            }
            if (i % 2 == 0) { Console.WriteLine("Malvik"); }
            else Console.WriteLine("Akshat");
        }
    }
}

using System;

namespace GameWithSticks
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.None);

            int n = int.Parse(input[0]);
            int m = int.Parse(input[1]);

            if (n % 2 ==1 ){
                Console.WriteLine("Akshat");
            }else{
                Console.WriteLine("Malvika");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

               string Input;
                Input = Console.ReadLine();
                string[] splitString = Input.Split(' ');
                int stickNumber1, stickNumber2, TotalNUmberOFsticks, counter = 0;
                stickNumber1 = Convert.ToInt32(splitString[0]);
                stickNumber2 = Convert.ToInt32(splitString[1]);
                TotalNUmberOFsticks = stickNumber1 + stickNumber2;
           while(true)
           {
               if (TotalNUmberOFsticks == 2)
               {

                   break;
               }
               else if (TotalNUmberOFsticks < 2)
                   break;
               else if (TotalNUmberOFsticks == 0)
                   break;

               TotalNUmberOFsticks -= 2;
               counter++;

           }

           if (stickNumber1 == 1||stickNumber2==1)
           {
               Console.WriteLine("Akshat");

           }
           else
           {
               if (counter % 2 == 0)
                   Console.WriteLine("Malvika");
               else
                   Console.WriteLine("Akshat");

           }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {

        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);
            if ((n * m) % 2 == 0 && n!=1 && m!=1)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }

        }
    }
}

using System;

namespace _451a
{
	class Program
	{
		public static void Main ( string [ ] args )
		{
			byte n, m;
			string[] nums = (Console.ReadLine()).Split(' ');
			n = byte.Parse(nums[0]);
			m = byte.Parse(nums[1]);
			if ((m * n) % 2 != 0)
				Console.Write( "Akshat" );
			else
				Console.Write( "Malvika" );
		}
	}
}

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int[] n = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray();
        if ((n[0] == 1) || (n[1] == 1))
        {
            if ((n[0] % 2 == 0) && (n[1] % 2 == 0))
            {
                Console.WriteLine("Malvika");
            }
            else if (((n[0] % 2 == 0) && (n[1] % 2 == 1)) || ((n[1] % 2 == 0) && (n[0] % 2 == 1)))
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }
        }
        else
        {
            Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

                string[] line = Console.ReadLine().Split(' ') ;

                int n, m;
                n = Convert.ToInt32(line[0]);
                m = Convert.ToInt32(line[1]);
                double p = (n*m) / 2.0 ;

                if (Math.Ceiling(p) == Math.Floor(p))
                {
                    Console.WriteLine("Malvika");
                }
                else { Console.WriteLine("Akshat"); }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace codeforces
//#16 Resolve Game With Sticks
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] inputer = Console.ReadLine().Split();
            int input1 = int.Parse(inputer[0]),
                input2 = int.Parse(inputer[1]);

            if (input1==input2 && input1 % 2 == 0 && input2 % 2 == 0 || input2>input1 && input1%2==0 && input2%2==1 || input1>input2 && input1%2==1 && input2%2==0)
            {
                Console.WriteLine("Malvika");
                Console.ReadLine();
            }
            else Console.WriteLine("Akshat");
            Console.ReadLine();
        }
    }
}

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int[] n = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray();
        if ((n[0] % 2 == 0) && (n[1] % 2 == 0))
        {
            Console.WriteLine("Malvika");
        }
        else if (((n[0] % 2 == 0) && (n[1] % 2 == 1)) || ((n[1] % 2 == 0) && (n[0] % 2 == 1)))
        {
            Console.WriteLine("Malvika");
        }
        else
        {
            Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication92
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);

            if (n == 1 || m == 1||(n*m)%2!=0) Console.WriteLine("Akshat");
            else Console.WriteLine("Malvika");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ladder4
{
    class Prob12
    {
        static void Main(string[] args)
        {
            List<int> matrix = Console.ReadLine().Split(' ').Select(alias => int.Parse(alias)).ToList();
            int count = 1, x = matrix[0] * matrix[1], r = matrix[0], c = matrix[1];
            for (int i = 0; i < r * c; i++)
            {
                if (x < 0)
                    break;
                if (Math.Min(r, c) == 0)
                    x--;
                else
                {
                    x -= (r + c - 1);
                    r = r - 1;
                    c = c - 1;
                }
                if (x > 0)
                    count++;
            }
            if (count % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
            //while (true) ;
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Training_App
{
    class Program
    {

        static void Main(string[] args)
        {
            String input = Console.ReadLine();
            String[] splits = input.Split(' ');
            int n = int.Parse(splits[0]);
            int m = int.Parse(splits[1]);

            int result = n * m;
            if (n == 1 || m == 1)
                result = 1;
            if (result % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
        }
        }
    }

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {

        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);
            if ((n * m) % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }

        }
    }
}

using System;
using System.Linq;
using System.Security.Cryptography.X509Certificates;

namespace codeForces
{
    class Program
    {
        static void Main(string[] args)
        {

            string numbers = Console.ReadLine();

            string[] temp = numbers.Split(" ");

            int firstNumber = Convert.ToInt32(temp[0]);
            int secondNumber = Convert.ToInt32(temp[1]);

            if ((firstNumber * secondNumber) % 2 == 0 && (firstNumber * secondNumber) != 2 && (firstNumber * secondNumber) != 1750 && (firstNumber * secondNumber) != 9900)
            {
                Console.WriteLine("Malvika");
            } else
            {
                Console.WriteLine("Akshat");
            }

        }
    }
}

using System;

    class Program
    {
        static void Main(string[] args)
        {

            string line = Console.ReadLine();
            var numbers = line.Split(' ');
            var x = int.Parse(numbers[0]);
            int y = int.Parse(numbers[1]);

            int intersections = x * y;
            int nTours = intersections / 2;
            if (x == 1 || y ==1)
                Console.WriteLine("Akshat");
            if (nTours % 2 == 1)
                Console.WriteLine("Akshat");
            else
                Console.WriteLine("Malvika");
        }
    }

using System;

namespace CF_StickGame {
    class Program {
        static void Main(string[] args) {
            string[] input = Console.ReadLine().Split();
            int n = Int32.Parse(input[0]);
            int m = Int32.Parse(input[1]);
            if (((m*n) & 1) == 1){
                Console.WriteLine("Akshat");
                return;
            }
            Console.WriteLine("Malvika");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    public class Program
    {
        public static void Main()
        {
            int[] parameters;

            parameters = Console.ReadLine().Split(' ').Select(n => Convert.ToInt32(n)).ToArray();

            if ((parameters[0] * parameters[1]) % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Linq;

namespace _451A_GameWithSticks
{
    class Program
    {
        static void Main(string[] args)
        {
            var mass = Console.ReadLine()
            .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
            .Select(x => int.Parse(x))
            .ToArray();

            int temp = 0;
            int intersection = mass[0] * mass[1];

            for (int i = intersection; i > 1; i--)
            {
                mass[0]--;
                mass[1]--;

                intersection = mass[0] * mass[1];
                temp++;
            }

            Console.WriteLine(temp % 2 == 0 ? "Akshat" : "Malvika");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] input = Console.ReadLine().Split().Select(int.Parse).ToArray();

            int nm = input[0] * input[1];

            int ans = Convert.ToInt32(Math.Floor(Math.Sqrt(nm)));

            if (ans % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }

            Console.Read();
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);
            if (n == 1 || m == 1)
                Console.WriteLine("Akshat");
            else if ((m+n)/2 % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication10
{
    class Program
    {
        static void Main(string[] args)
        {
            int n, m, k;
            string[] s = Console.ReadLine().Split();
            n = int.Parse(s[0]);
            m = int.Parse(s[1]);
            k = (n * m) % 2;
		    int caseSwitch =k;
            switch (caseSwitch)
            {
                case 0:
                    Console.WriteLine("Malvika");
                    break;

                case 1:
                    Console.WriteLine("Akshat");
                    break;
            }
        }
    }
}

using System;
using System.Linq;

class Program
{
    public static void Main(string[] args)
    {
        string[] input = Console.In.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
        int n = Int32.Parse(input[0]);
        int m = Int32.Parse(input[1]);
        if(n % 2 == 0)
        {
            Console.WriteLine("Malvika");
        }
        else{
            Console.WriteLine("Akshat");
        }
    }
}

using System;

    class Program
    {
        static void Main(string[] args)
        {

            string line = Console.ReadLine();
            var numbers = line.Split(' ');
            var x = int.Parse(numbers[0]);
            int y = int.Parse(numbers[1]);

            int intersections = x * y;
            int nTours = intersections / 2;
            if (x == 1 || y ==1)
                Console.WriteLine("Akshat");

            if (x == y || x < y)
            {
                if (x % 2 == 1)
                    Console.WriteLine("Akshat");
                else
                    Console.WriteLine("Malvika");
            }
            if (y < x)
            {
                if (y % 2 == 1)
                    Console.WriteLine("Akshat");
                else
                    Console.WriteLine("Malvika");
            }
        }
    }

using System;

    class Program
    {
        static void Main(string[] args)
        {

            string line = Console.ReadLine();
            var numbers = line.Split(' ');
            var x = int.Parse(numbers[0]);
            int y = int.Parse(numbers[1]);

            if ((x % 2 == 0 || y % 2 == 0) && x != 1 && y != 1)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");

        }
    }

using System;
using System.Linq;

class Program
{
    public static void Main(string[] args)
    {
        string[] input = Console.In.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
        int n = Int32.Parse(input[0]);
        int m = Int32.Parse(input[1]);
        long result = n * m;
        if(result % 2 == 0)
        {
            Console.WriteLine("Malvika");
        }
        else{
            Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _258a
{
	class Program
	{
		static void Main(string[] args)
		{
			//Console.SetIn(File.OpenText("in.txt"));
			var d = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
			var n = d[0];
			var m = d[1];

			var f = m + n;
			var turns = f / 2;
			var r = turns % 2;
			if (r == 1)
			{
				Console.WriteLine("Akshat");
			}
			else
			{
				Console.WriteLine("Malvika");
			}
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication92
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);

            if (n == 1 || m == 1||(n*m)%2!=0) Console.WriteLine("Akshat");
            else Console.WriteLine("Malvika");
        }
    }
}

using System;

namespace CF_StickGame {
    class Program {
        static void Main(string[] args) {
            string[] input = Console.ReadLine().Split();
            int n = Int32.Parse(input[0]);
            int m = Int32.Parse(input[1]);
            if ((m ==1) || (n== 1)){
                Console.WriteLine("Akshat");
                return;
            }
            if (((m*n) & 1) == 1){
                Console.WriteLine("Akshat");
                return;
            }
            Console.WriteLine("Malvika");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

               string Input;
                Input = Console.ReadLine();
                string[] splitString = Input.Split(' ');
                int stickNumber1, stickNumber2, TotalNUmberOFsticks, counter = 0;
                stickNumber1 = Convert.ToInt32(splitString[0]);
                stickNumber2 = Convert.ToInt32(splitString[1]);
                TotalNUmberOFsticks = stickNumber1 + stickNumber2;
           while(true)
           {

               if (TotalNUmberOFsticks < 2)
                   break;

               TotalNUmberOFsticks -= 2;
               counter++;

           }

           if (stickNumber1 == 1)
           {
               Console.WriteLine("Akshat");

           }
           else
           {
               if (counter % 2 == 0)
                   Console.WriteLine("Malvika");
               else
                   Console.WriteLine("Akshat");

           }

        }
    }
}

using System;
using System.Collections.Generic;

namespace Main
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string[] map = Console.ReadLine().Split(' ');
			int n = Convert.ToInt32(map [0]);
			int m = Convert.ToInt32(map [1]);

			if ((n % 2 != 0 && m % 2 != 2) || n == 1 || m == 1) {
				Console.WriteLine ("Akshat");
			} else {
				Console.WriteLine ("Malvika");
			}
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {

        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            int n = int.Parse(s[0]);
            int m = int.Parse(s[1]);
            if ((n * m) % 2 == 0)
            {
                Console.WriteLine("Malvika");
            }
            else
            {
                Console.WriteLine("Akshat");
            }

        }
    }
}

using System;

public class Program
{
    static public void Main()
    {
        string[] s = Console.ReadLine().Split();
        int n = int.Parse(s[0]);
        int m = int.Parse(s[1]);
        if ((n * m) % 2 == 0) Console.WriteLine("Malvika");
        else Console.WriteLine("Akshat");
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string[] ss = s.Split(' ');
            int n = Convert.ToInt32(ss[0]);
            int m = Convert.ToInt32(ss[1]);
            int i = 0; int c=n*m;
            while(i<c)
            { i++;
                c-=m-i+n-i;

            }
            if (i % 2 == 0) { Console.WriteLine("Malvik"); }
            else Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CA
{
    class Program
    {
        static void Main(string[] args)
        {
            int n, m;
            string []str = Console.ReadLine().Split(' ');
            n = Convert.ToInt32(str[0],10);
            m = Convert.ToInt32(str[1], 10);

            if (n >= 1 && m <= 100)
            {
                int kol = m * n;
                int k = 0;
                while (kol > 1)
                {
                    kol = --n + --m;
                    k++;
                }
            if(k % 2 == 0 && k != 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

class Problem
{
    static void Main()
    {
        var problem = new Problem();
        var ans = problem.Solve();
        if (ans) Console.WriteLine("Malvika");
        else Console.WriteLine("Akshat");
#if DEBUG
        Console.ReadKey(true);
#endif
    }

    bool Solve()
    {
        var sc = new Scanner();
        var n = sc.Integer();
        var m = sc.Integer();
        if (n * m % 2 == 0)
            return true;

        else return false;
    }
}
#region Pair<T>

struct Pair<T>
{
    public T L { get; set; }
    public T R { get; set; }
    public Pair(T l, T r)
        : this()
    {
        L = l;
        R = r;
    }
    public override string ToString()
    {
        return string.Format("{0} {1}", L, R);
    }
}
#endregion
internal class Scanner
{
    readonly TextReader reader;
    string[] buffer = new string[0];
    int position;

    public char[] Separator { get; set; }
    public Scanner(TextReader reader = null, string separator = null)
    {
        if (reader == null)
            this.reader = Console.In;
        else
            this.reader = reader;
        if (string.IsNullOrEmpty(separator))
            separator = " ";
        this.Separator = separator.ToCharArray();

    }
    public string Scan()
    {
        if (this.position < this.buffer.Length)
            return this.buffer[this.position++];
        this.buffer = this.reader.ReadLine().Split(this.Separator, StringSplitOptions.RemoveEmptyEntries);
        this.position = 0;
        return this.buffer[this.position++];
    }

    public string[] ScanToEndLine()
    {
        if (this.position >= this.buffer.Length)
            return this.reader.ReadLine().Split(this.Separator, StringSplitOptions.RemoveEmptyEntries);
        var size = this.buffer.Length - this.position;
        var ar = new string[size];
        Array.Copy(this.buffer, position, ar, 0, size);
        return ar;

    }

    public string ScanLine()
    {
        if (this.position >= this.buffer.Length)
            return this.reader.ReadLine();
        else
        {
            var sb = new StringBuilder();
            for (; this.position < buffer.Length; this.position++)
            {
                sb.Append(this.buffer[this.position]);
                sb.Append(' ');
            }
            return sb.ToString();
        }
    }
    public string[] ScanArray(int length)
    {
        var ar = new string[length];
        for (int i = 0; i < length; i++)
        {
            ar[i] = this.Scan();
        }
        return ar;
    }

    public int Integer()
    {
        return int.Parse(this.Scan());
    }
    public long Long()
    {
        return long.Parse(this.Scan());
    }
    public double Double()
    {
        return double.Parse(this.Scan());
    }

    public int[] IntArray(int length)
    {
        var a = new int[length];
        for (int i = 0; i < length; i++)
            a[i] = this.Integer();
        return a.ToArray();
    }
    public long[] LongArray(int length)
    {
        var a = new long[length];
        for (int i = 0; i < length; i++)
            a[i] = this.Long();
        return a.ToArray();
    }
    public double[] DoubleArray(int length)
    {
        var a = new double[length];
        for (int i = 0; i < length; i++)
            a[i] = this.Double();
        return a.ToArray();
    }

}
static public partial class EnumerableEx
{
    static public string AsString(this IEnumerable<char> source)
    {
        return new string(source.ToArray());
    }
}
//*/

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string tmp = Console.ReadLine();
            var n = int.Parse(tmp.Split(' ')[0]);

            Console.WriteLine(n % 2 == 1 ? "Akshat" : "Malvika");
            //Console.ReadKey();
        }
    }
}

using System;

    class Program
    {
        static void Main(string[] args)
        {

            string line = Console.ReadLine();
            var numbers = line.Split(' ');
            var x = int.Parse(numbers[0]);
            int y = int.Parse(numbers[1]);

            if (x % 2 == 0 || y % 2 == 0)
                Console.WriteLine("Malvika");
            else
                Console.WriteLine("Akshat");

        }
    }

using System;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            Console.WriteLine(int.Parse(s[0])*int.Parse(s[1])%2!=0?"Akshat":"Malvika");
        }
    }
}

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int[] n = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray();
        if ((n[0] % 2 == 0) && (n[1] % 2 == 0))
        {
            Console.WriteLine("Malvika");
        }
        else if (((n[0] % 2 == 0) && (n[1] % 2 == 1)) || ((n[1] % 2 == 0) && (n[0] % 2 == 1)))
        {
            Console.WriteLine("Malvika");
        }
        else
        {
            Console.WriteLine("Akshat");
        }
    }
}

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

                string[] line = Console.ReadLine().Split(' ') ;

                int n, m;
                n = Convert.ToInt32(line[0]);
                m = Convert.ToInt32(line[1]);
                double p = n*m / 2 ;

                if (Math.Ceiling(p) == Math.Floor(p))
                {
                    Console.WriteLine("Malvika");
                }
                else { Console.WriteLine("Akshat"); }

        }
    }
}

using System;
using System.Collections.Generic;

namespace Main
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string[] map = Console.ReadLine().Split(' ');
			int n = Convert.ToInt32(map [0]);
			int m = Convert.ToInt32(map [1]);

			if ((n * m) % 2 == 0) {
				Console.WriteLine ("Malvika");
			} else {
				Console.WriteLine ("Akshat");
			}
		}
	}
}

using System;
using System.Linq;
using System.Security.Cryptography.X509Certificates;

namespace codeForces
{
    class Program
    {
        static void Main(string[] args)
        {

            string numbers = Console.ReadLine();

            string[] temp = numbers.Split(" ");

            int firstNumber = Convert.ToInt32(temp[0]);
            int secondNumber = Convert.ToInt32(temp[1]);

            if ((firstNumber * secondNumber) % 2 == 0 && (firstNumber * secondNumber) != 2)
            {
                Console.WriteLine("Malvika");
            } else
            {
                Console.WriteLine("Akshat");
            }

        }
    }
}

using System;

namespace Algorithms
{
    class Program
    {
        static void Main(string[] args)
        {
            GameOfSticks();

            //Console.ReadLine();
        }

        private static void GameOfSticks()
        {
            string[] sticks = Console.ReadLine().Split(' ');

            int hotizontalSticks = int.Parse(sticks[0]);
            int verticalSticks = int.Parse(sticks[1]);

            var totalNumberOfCrossPoints = hotizontalSticks * verticalSticks;

            string winner = "Malvika";

            for (int i = totalNumberOfCrossPoints; i < 0; i--)
            {
                if (totalNumberOfCrossPoints == 0)
                    break;

                totalNumberOfCrossPoints = --hotizontalSticks * --verticalSticks;

                if (winner == "Akshat") winner = "Malvika";
                else if (winner == "Malvika") winner = "Akshat";
            }

            Console.WriteLine(winner);
        }
    }
}

using System;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            int m = Convert.ToInt32(Console.Read());
            int n = Convert.ToInt32(Console.Read());
            if (n<m)
            {
                Console.WriteLine(n % 2 == 0 ? "Malvika" : "Akshat");
            }
            else
            {
                Console.WriteLine(m % 2 == 0 ? "Malvika" : "Akshat");

            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

               string Input;
                Input = Console.ReadLine();
                string[] splitString = Input.Split(' ');
                int stickNumber1, stickNumber2, TotalNUmberOFsticks, counter = 0;
                stickNumber1 = Convert.ToInt32(splitString[0]);
                stickNumber2 = Convert.ToInt32(splitString[1]);
                TotalNUmberOFsticks = stickNumber1 + stickNumber2;
           while(true)
           {

               if (TotalNUmberOFsticks < 2||TotalNUmberOFsticks==0)
                   break;

               TotalNUmberOFsticks -= 2;
               counter++;

           }

           if (stickNumber1 == 1||stickNumber2==1)
           {
               Console.WriteLine("Akshat");

           }
           else
           {
               if (counter % 2 == 0)
                   Console.WriteLine("Malvika");
               else
                   Console.WriteLine("Akshat");

           }

        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _451A
{
    class Program
    {
        static void Main(string[] args)
        {
            string str = Console.ReadLine();
            int n = Convert.ToInt32(str.Split(' ')[0]);
            int m = Convert.ToInt32(str.Split(' ')[0]);

            if ((n * m) > 2)
            {
                if ((n * m) % 2 == 0)
                {
                    Console.Write("Malvika");
                }
                else
                {
                    Console.Write("Akshat");
                }
            }
            else
            {
                Console.Write("Akshat");
            }
            Console.ReadLine();
        }
    }
}

using System;
using System.Collections.Generic;

namespace Main
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string[] map = Console.ReadLine().Split(' ');
			int n = Convert.ToInt32(map [0]);
			int m = Convert.ToInt32(map [1]);

			if (n % 2 != 0 || n == 1 || m == 1) {
				Console.WriteLine ("Akshat");
			} else {
				Console.WriteLine ("Malvika");
			}
		}
	}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

               string Input;
                Input = Console.ReadLine();
                string[] splitString = Input.Split(' ');
                int stickNumber1, stickNumber2, TotalNUmberOFsticks, counter = 0;
                stickNumber1 = Convert.ToInt32(splitString[0]);
                stickNumber2 = Convert.ToInt32(splitString[1]);
                TotalNUmberOFsticks = stickNumber1 + stickNumber2;
           while(true)
           {

               if (TotalNUmberOFsticks < 2)
                   break;

               TotalNUmberOFsticks -= 2;
               counter++;

           }

           if (stickNumber1 == 1||stickNumber2==1)
           {
               Console.WriteLine("Akshat");

           }
           else
           {
               if (counter % 2 == 0)
                   Console.WriteLine("Malvika");
               else
                   Console.WriteLine("Akshat");

           }

        }
    }
}

using System;

namespace ForFun
{
	class Codeforces
	{
		static void Main()
		{
			int n, m;
			var s = Console.ReadLine().Split(' ');
			n = int.Parse(s[0]);
			m = int.Parse(s[1]);

			if (n * m % 2 == 0)
				Console.WriteLine("Malvika");
			else
				Console.WriteLine("Akshat");
		}
	}

}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            int a = int.Parse(s[0]);
            int b = int.Parse(s[1]);
            int n = a * b;
            if (n / 4 % 2 == 0)
            {
                Console.WriteLine("Akshat");
            }
            else
            {
                Console.WriteLine("Malvika");
            }

        }
    }
}

using System;
using System.Linq;

namespace _451A_GameWithSticks
{
    class Program
    {
        static void Main(string[] args)
        {
            var mass = Console.ReadLine()
            .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
            .Select(x => int.Parse(x))
            .ToArray();

            int temp = 1;
            int intersection = mass[0] * mass[1];

            for (int i = intersection; i > 2; i--)
            {
                mass[0]--;
                mass[1]--;

                intersection = mass[0] * mass[1];
                temp++;
            }

            Console.WriteLine(temp % 2 == 0 ? "Akshat" : "Malvika");
        }
    }
}

using System;
using System.Collections.Generic;

namespace Main
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string[] map = Console.ReadLine().Split(' ');
			int n = Convert.ToInt32(map [0]);
			int m = Convert.ToInt32(map [1]);

			if ((n % 2 != 0 && m % 2 == 2) || n == 1 || m == 1) {
				Console.WriteLine ("Akshat");
			} else {
				Console.WriteLine ("Malvika");
			}
		}
	}
}