#include #include using namespace std; int main(void) { int i, j, len1, len2; char name1[100], name2[100], te1[1], te2[1]; char p1[10000], p2[10000]; cin >> name1 >> p1 >> te1; cin >> name2 >> p2 >> te2; len1 = strlen(p1); len2 = strlen(p2); if (len1 > len2)cout << name1; else if (len1 < len2)cout << name2; else { for (i = 0; i < len1; i++) { if (p1[i] > p2[i]) { cout << name1 << endl; break; } else if (p1[i] < p2[i]) { cout << name2 << endl; break; } } if(p1[i]==p2[i])cout << -1<