#include using namespace std; int main(){ int A,B; std::cin >> A >> B; if (A%B==0){ std::cout << "YES" << std::endl; }else{ std::cout << "NO" << std::endl; } }