#include #include #include int main(){ std::string aName; std::string bName; int aYuruhuwapoint; int bYuruhuwapoint; char aHand; char bHand; std::cin >> aName >> aYuruhuwapoint >> aHand; std::cin.ignore(); std::cin >> bName >> bYuruhuwapoint >> bHand; if (aYuruhuwapoint>bYuruhuwapoint){ std::cout << aName<< std::endl; } else{ if (aYuruhuwapoint != bYuruhuwapoint){ std::cout << bName << std::endl; } else{ std::cout << "-1"<< std::endl; } } return 0; }