#include using namespace std; int main() { int A[3], B[3]; //scanf("%d.%d.%d",&A[0],&A[1],&A[2]); //scanf("%d.%d.%d",&B[0],&B[1],&B[2]); char comma = '.'; cin >> A[0] >> comma >> A[1] >> comma >> A[2]; cin >> B[0] >> comma >> B[1] >> comma >> B[2]; int valA = A[0]*101*101 + A[1]*101 + A[2]; int valB = B[0]*101*101 + B[1]*101 + B[2]; if(valA < valB) cout << "NO" << endl; else cout << "YES" << endl; return 0; }