#include int main() { int n, m; scanf("%i %i", &n, &m); switch(n % m) { case 0: printf("YES"); break; default: printf("NO"); } return 0; }