using System.Numerics; public class Program { public static void Main() { //Biginteger num =BigInteger.Parse(Console.ReadLine() ?? string.Empty); string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); string[] str2 = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); //string str = Console.ReadLine() ?? string.Empty; string name1 = str[0]; string name2 = str2[0]; BigInteger point1 = BigInteger.Parse(str[1]); BigInteger point2 = BigInteger.Parse(str2[1]); if(point1 > point2) { Console.WriteLine(name1); } else if(point1 < point2) { Console.WriteLine(name2); } else { Console.WriteLine(-1); } } }