#include #include #include #include #include #include ///////// #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define P(p) cout<<(p)<>a>>b; int A[3]; int B[3]; rep(i,3){ A[i] = 0; B[i] = 0; } ///////// int count = 0; rep(i,a.size()){ if(a[i] == '.'){ ++count; }else{ A[count] = A[count]*10 + a[i] - '0'; } } count = 0; rep(i,b.size()){ if(b[i] == '.'){ ++count; }else{ B[count] = B[count]*10 + b[i] - '0'; } } ///////// rep(i,3){ if(A[i] > B[i]){ P("YES"); break; }else if( A[i] < B[i]){ P("NO"); break; }else{//A[i]==B[i]; if(i != 2){ P("YES"); break;// }else{ //continue } } } return 0; }