#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #define INF 1050000000 #define SIZE 300 #define MOD 1000000007 using namespace std; int main() { string s1, s2; cin >> s1 >> s2; int a, b; a = (s1[0] - '0') * 100 + (s1[2] - '0') * 10 + (s1[4] - '0') * 1; b = (s2[0] - '0') * 100 + (s2[2] - '0') * 10 + (s2[4] - '0') * 1; if (a >= b) cout << "YES" << endl; else cout << "NO" << endl; return (0); }