#include <iostream>
#include <cstdlib>

using namespace std;

int main() {
  // Define variables to store the current score and final result
  int x, y, a, b;

  // Get the current score and final result from the user
  cout << "Enter the current score (x:y): ";
  cin >> x >> y;
  cout << "Enter the final result (a:b): ";
  cin >> a >> b;

  // Compare the current score to the final result
  if (x == a && y == b) {
    // If the scores are equal, it is not possible to determine which team will score the next goal
    cout << "It is not possible to determine which team will score the next goal." << endl;
  } else {
    // If the scores are not equal, determine which team is winning
    if (x > y) {
      // If team x is winning, they are likely to score the next goal
      cout << "Team x is likely to score the next goal." << endl;
    } else if (y > x) {
      // If team y is winning, they are likely to score the next goal
      cout << "Team y is likely to score the next goal." << endl;
    } else {
      // If the game is tied, randomly choose a team to score the next goal
      int team = rand() % 2;
      if (team == 0) {
        cout << "Team x is likely to score the next goal." << endl;
      } else {
        cout << "Team y is likely to score the next goal." << endl;
      }
    }
  }

  return 0;
}