﻿using System;

namespace Problem_04_Phone
{
    class Program_04_Phone
    {
        static void Main()
        {
            string[] numbers = Console.ReadLine().Split(' ');
            string[] names = Console.ReadLine().Split(' ');

            while (true)
            {
                string[] request = Console.ReadLine().Split(' ');
                if (request[0] == "done") break;
                switch (request[0])
                {
                    case "call":
                        Call(request[1], numbers, names);
                        break;
                    case "message":
                        SendSMS(request[1], numbers, names);
                        break;
                }
            }

        }

        public static void Call(string contact, string[] numbers, string[] names)
        {
            bool contactFound = false;
            for (int index = 0; index < numbers.Length; index++)
            {
                if (contact == numbers[index])
                {
                    Console.WriteLine("calling {0}...", names[index]);
                    contactFound = true;
                }

                if (contact == names[index])
                {
                    Console.WriteLine("calling {0}...", numbers[index]);
                    contact = numbers[index];
                    contactFound = true;
                }

                if (contactFound)
                {
                    int digitsSum = DigitsSum(contact);
                    if (digitsSum % 2 == 1)
                    {
                        Console.WriteLine("no answer");
                    }
                    else
                    {
                        int mins = digitsSum / 60;
                        int secs = digitsSum % 60;
                        Console.WriteLine("call ended. duration: {0:D2}:{1:D2}", mins, secs);
                    }
                    break;
                }
            }

        }

        public static void SendSMS(string contact, string[] numbers, string[] names)
        {
            bool contactFound = false;
            for (int index = 0; index < numbers.Length; index++)
            {
                if (contact == numbers[index])
                {
                    Console.WriteLine("sending sms to {0}...", names[index]);
                    contactFound = true;
                }

                if (contact == names[index])
                {
                    Console.WriteLine("sending sms to {0}...", numbers[index]);
                    contact = numbers[index];
                    contactFound = true;
                }
             
                if (contactFound)
                {
                    Console.WriteLine((DigitsDiff(contact) % 2 == 0) ? "meet me there" : "busy");
                    break;
                }
            }
        }



        public static int DigitsSum(string number)
        {
            int result = 0;
            for (int index = 0; index < number.Length; index++)
            {
                if ((number[index] >= '0') && (number[index] <= '9'))
                {
                    result += number[index] - '0';
                }
            }

            return result;
        }

        public static int DigitsDiff(string number)
        {
            int result = 0;
            for (int index = 0; index < number.Length; index++)
            {
                if ((number[index] >= '0') && (number[index] <= '9'))
                {
                    result -= number[index] - '0';
                }
            }

            return result;
        }
    }
}
