typedef long long ll; #include using namespace std; int main() { ll a,b; std::cin >> a>>b; for (int i = 1; i <= a; i++) { if(a%i==0 && i%b==0){ std::cout << "YES" << std::endl; return 0; } } std::cout << "NO" << std::endl; }