#include int main(void) { // your code goes here unsigned long a,b,c, n, m; fscanf(stdin, "%ld", &a); fscanf(stdin, "%ld", &b); fscanf(stdin, "%ld", &c); for(n = 1; (b * n) < a; n++); for(m = 1; (c * m) < a; m++); if((n * 2 / 3) == m) printf("YES\n"); else printf("NO\n"); return 0; }