I solved 80% of the problem and don't have any idea for the 20%
Problem: In Group B of the World Cup, the teams of Iran, Portugal, Spain and Morocco are present. Write a program that, after receiving the results of the games, prints the name of the team, the number of wins and losses, the difference in goals and points, in a single line, respectively. Each team is printed on a line in order of points. (If the score was equal, the number of wins should be considered. If both the number of wins and the score were equal, they should be printed in alphabetical order.) Iran - Spain Iran - Portugal Iran - Morocco Spain - Portugal Spain - Morocco Portugal - Morocco Sample input: 2-2 2-1 1-2 2-2 3-1 2-1 Sample output: Spain wins:1 , loses:0 , draws:2 , goal difference:2 , points:5 Iran wins:1 , loses:1 , draws:1 , goal difference:0 , points:4 Portugal wins:1 , loses:1 , draws:1 , goal difference:0 , points:4 Morocco wins:1 , loses:2 , draws:0 , goal difference:-2 , points:3 My problem is the condition inside the text brackets above https://code.sololearn.com/cLbzn974mVmG/?re