#include using namespace std; using ll=long long; ll mod=1000000007; ll INF=1LL<<60; int main() { string A,B; cin >> A >> B; if(A.size()>B.size()){ cout << A << endl; return 0; } else if(A.size()B[i]){ cout << A << endl; return 0; } if(A[i]