#include using namespace std; int main() { long long A, B; cin >> A >> B; double a = log10( A ) * B; double b = log10( B ) * A; string ans = "No"; if( a == b ) ans = "Yes"; cout << ans << endl; }