#include using namespace std; int main() { long long X, A, Y, B; cin >> X >> A >> Y >> B; map mpx; for( long long i = 2; i * i <= X; i++ ) { while( X % i == 0 ) { mpx[i]++; X /= i; } } if( X != 1 ) mpx[X]++; map mpy; for( long long i = 2; i * i <= Y; i++ ) { while( Y % i == 0 ) { mpy[i]++; Y /= i; } } if( Y != 1 ) mpy[Y]++; string ans = "Yes"; for( auto it = mpy.begin(); it != mpy.end(); it++ ) { long long f = it->first; int s = it->second; int xs = mpx[f]; if( xs == 0 || s + B > xs + A ) ans = "No"; if( ans == "No") break; } cout << ans << endl; }