#include using namespace std; int main() { string A, B; cin >> A >> B; for (int i = A.size() - 1; i >= 0; i--) if (A.at(i) == '.') A.erase(i, 1); for (int i = B.size() - 1; i >= 0; i--) if (B.at(i) == '.') B.erase(i, 1); cout << ((stoi(A) >= stoi(B)) ? "YES" : "NO") << "\n"; }