#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T &a, T b) { return ((a>b) ? (a = b, true) : (false));} #define rep(i,s,n) for(long long i=s;i<(long long)(n);i++) #define rrep(i,s,n) for(long long i=n-1;i>=s;i--) const long long inf = 1LL<<60; typedef long long ll; typedef long double ld; #define cmp [](pair a, pair b){if(a.second != b.second) return a.second b.first; } //pairのsecondでソートsort(p.begin(),p.end(),cmp), secondが同じならfirstで逆順ソート //cmpArg := 偏角ソート, atan2l(y, x); #define cmpArg [](const auto &p1, const auto &p2) { return atan2l(p1.second, p1.first) < atan2l(p2.second, p2.first); } typedef pair P; typedef pair > PP; #define rll ll,vector,greater #define rP P,vector

,greater

const long double pi = 3.14159265358979; typedef unsigned long long ull; #define vll vector #define vvll vector> #define vvch vector> #define vch vector #define rPP PP,vector,greater #define vP vector

#define vvP vector> #define all(x) x.begin(), x.end() //bitの差集合 S & ~(1< inf - b および a > inf / bでとってね //long doubleやdoubleの時はpowl(weight-ave, 2)の方がいい(できるなら2乗を展開せずに組み込みの関数で計算した方がいい) int main() { string a,b; cin >> a >> b; if(b.size() > a.size()) { cout << "No" << endl; return 0; } while(a.size() > b.size()) b = "0" + b; rep(i,0,a.size()) { if(a[i] < b[i]) { cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }