#include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,b) for(i=a;i> Sa >> Pa >> x; cin >> Sb >> Pb >> x; if(strlen(Pa) > strlen(Pb) ) winner = 'a'; if(strlen(Pa) < strlen(Pb) ) winner = 'b'; else { for(j=0;j Pb[j]) { winner = 'a';break; } if(Pa[j] < Pb[j]) { winner = 'b'; break; } } } if(winner == 'a') cout << Sa << endl; if(winner == 'b') cout << Sb << endl; if(winner == 0 ) cout << "-1" << endl; return 0; }