#include int main() { int a, b; scanf("%d %d", &a, &b); printf("%s\n", a%b==0 ? "YES": "NO"); return 0; }