#include #include using namespace std; int main(int argc, char* argv[]) { int A0,B0,C0; int A1,B1,C1; fscanf(stdin,"%d.%d.%d",&A0,&B0,&C0); fscanf(stdin,"%d.%d.%d",&A1,&B1,&C1); if (A0>=A1&&B0>=B1&&C0>=C1){ cout<<"YES"<