#include #include using namespace std; using namespace atcoder; typedef long long ll; #define rep(i, a, b) for (ll i = a; i < b; i++) #define rrep(i, a, b) for (ll i = a; i >= b; i--) using mint = modint1000000007; void chmin(ll &x, ll y) { x = min(x, y); } void chmax(ll &x, ll y) { x = max(x, y); } int main() { cin.tie(0); ios_base::sync_with_stdio(false); ll A, B; if(pow(A,B) == pow(B,A)) cout << "Yes"<< endl; else cout << "No" << endl; return 0; }