#include #include using namespace std; #define P(x) (cout << x << endl) int main(){ string s1,s2,t; long long int p1,p2; cin>>s1>>p1>>t>>s2>>p2; if(p1>p2) P(s1); else if(p1