#include #include using namespace std; #define ll long long int void solve(long long int n) { } int main() { ll a,b; cin >> a >> b; ll A = pow(a,b), B=pow(b,a); if(A == B){ cout << "YES"; } else cout << "NO"; return 0; }