#include #include #include int main(void) { int oldver1,oldver2,oldver3; int jver1,jver2,jver3; scanf("%d.%d.%d",&oldver1,&oldver2,&oldver3); scanf("%d.%d.%d",&jver1,&jver2,&jver3); if(oldver1>jver1) { printf("YES"); } else if (oldver1jver2) { printf("YES"); } else if (oldver2jver3) { printf("YES"); } else if (oldver3