#include #include #include #include #include #include #include #include #include #include #include #include #include #include #define PI 3.14159265359 #define INF 99999999 #define rep(i, n) for(int i=0; i P; int main() { string A, B; cin >> A >> B; if (A.length() > B.length()) { cout << A << endl; } else if (A.length() < B.length()) { cout << B << endl; } else { //同じ長さだった場合 for (int i=0; i B[i]) cout << B << endl; else cout << A << endl; break; } else if (A[i] != B[i]) { if (A[i] > B[i]) { cout << A << endl; } else { cout << B << endl; } break; } } } return 0; }