#include <bits/stdc++.h>
int main() {
  int a, b, c, d, e, f, i, j, s;
  scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
  if (a == 0) {
    printf("YES");
  } else if (a == c || a == d) {
    printf("YES");
  } else {
    for (i = 0; i < b; i++) {
      for (j = 0; j < b; j++) {
        s = c - i * e + d - j * f;
        if (s == a) {
          printf("YES");
          return 0;
        } else if (d - j * f == a) {
          printf("YES");
          return 0;
        } else if (c - e * i == a) {
          printf("YES");
          return 0;
        }
      }
    }
    printf("NO");
    return 0;
  }
}
