#include using namespace std; constexpr int inf = 1073741823; constexpr long long linf = 0xfffffffffffffff; using ll = long long; using ld = long double; int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); string a, b; cin >> a >> b; bool f = true; if(a.size() < b.size()) { cout << "No" << endl; return 0; } reverse(a.begin(), a.end()); reverse(b.begin(), b.end()); for(int i = 0; i < b.size(); i++) { if(a[i] - '0' < b[i] - '0') f = false; } if(f) { cout << "Yes" << endl; }else { cout << "No" << endl; } }