#include using namespace std; struct Player { string name; string score; bool operator<(const Player &other) const { int n1 = static_cast(score.size()), n2 = static_cast(other.score.size()); if(n1 < n2) { return true; } if(n2 < n1) { return false; } for(int i=0; i> a >> x >> unused1 >> b >> y >> unused2; string res = f(Player{a, x}, Player{b, y}); cout << res << '\n'; return 0; }