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