#include <stdio.h>
int main(void) {
int n, m;
scanf("%d %d", &n, &m);
switch (n % m) {
case 0:
printf("YES\n");
break;
default:
printf("NO\n");
break;
}
return 0;
}
int main(void) {
int n, m;
scanf("%d %d", &n, &m);
switch (n % m) {
case 0:
printf("YES\n");
break;
default:
printf("NO\n");
break;
}
return 0;
}