#include using namespace std; long long power(long long a,long long b) { if(b==0) return 1; long long temp = power(a,b/2); if(b%2==0) return temp*temp; else return a*temp*temp; } int main() { long long a,b; cin>>a>>b; long long ans1 = power(a,b); long long ans2 =power(b,a); if(ans1==ans2) cout<<"YES"<