#include #include #include #include #include #include #include #include #include #define rep(i,l,n) for(lint i=l;i vi; typedef vector vli; typedef vector vvi; typedef pair pii; int main(){ string sa,sb,a,b,x; cin>>sa>>a>>x; cin>>sb>>b>>x; if(a>b) o(sa); else if(a