#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); string a, b; cin >> a >> b; if (a.size() < b.size()) { cout << "No" << endl; return 0; } reverse(a.begin(), a.end()); reverse(b.begin(), b.end()); while (b.size() < a.size()) { b.push_back('0'); } for (int i = 0; i < a.size(); i++) { if (a[i] < b[i]) { cout << "No" << endl; return 0; } } cout << "Yes" << endl; }