#include #define rep(i,n) for(int i=0;i<(n);++i) #define all(a) (a).begin(),(a).end() using namespace std; typedef long long ll; int main(){ ios::sync_with_stdio(false); cin.tie(0); string Sa,Xa,Sb,Xb; int Pa,Pb; if(Pa == Pb) puts("-1"); if(Pa < Pb) cout << Sb << endl; else cout << Sa << endl; return 0; }