#include #include using namespace std; using namespace boost::multiprecision; int main() { string S[2], P[2], X[2]; for (int i = 0; i < 2; i++) { cin >> S[i] >> P[i] >> X[i]; } cpp_int Pa(P[0]), Pb(P[1]); if (Pa > Pb) cout << S[0] << endl; else if (Pb > Pa) cout << S[1] << endl; else cout << -1 << endl; }