using System;

namespace MysteriousMessage
{
    class Program
    {
        static void Main(string[] args)
        {
            // Read the final score from the mysterious message
            string[] finalScore = Console.ReadLine().Split(':');
            int a = int.Parse(finalScore[0]);
            int b = int.Parse(finalScore[1]);

            // Read the current score
            string[] currentScore = Console.ReadLine().Split(':');
            int x = int.Parse(currentScore[0]);
            int y = int.Parse(currentScore[1]);

            // Calculate the number of goals needed by each team to reach the final score
            int goalsNeededByA = a - x;
            int goalsNeededByB = b - y;

            // Determine which team is more likely to score next
            if (goalsNeededByA > goalsNeededByB)
            {
                Console.WriteLine("Team B is more likely to score next.");
            }
            else if (goalsNeededByB > goalsNeededByA)
            {
                Console.WriteLine("Team A is more likely to score next.");
            }
            else
            {
                Console.WriteLine("It is equally likely that either team will score next.");
            }
        }
    }
}