#include using namespace std; long long mod = 1000003; int main(){ string A,B; int a,b; cin>>A>>B; a=stoi(A); b=stoi(B); if(A.size()!=B.size()){ if((A.size()>B.size())) cout<b) cout<