import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long X = sc.nextLong(); long A = sc.nextLong(); long Y = sc.nextLong(); long B = sc.nextLong(); boolean ok = true; for( long i = 2; i*i <= X; i++ ) { if( X%i != 0 && Y%i == 0 ) ok = false; if( X%i == 0 && Y%i == 0 ) { int xcnt = 0; while( X%i == 0 ) { xcnt++; X /= i; } int ycnt = 0; while( Y%i == 0 ) { ycnt++; Y /= i; } if( xcnt*A < ycnt*B ) ok = false; } } if( X > 1 && X != Y ) ok = false; System.out.println( ok ? "Yes" : "No" ); } }