#include <bits/stdc++.h>
int main() {
  int a, b, s, t, da, db, i, j, t1, t2, x, m;
  scanf("%d %d %d %d %d %d", &x, &t, &a, &b, &da, &db);
  t1 = a + b;
  t2 = a + b - t * da - t * db;
  if (x == 0 || x == a || x == b) {
    printf("YES");
    return 0;
  }
  for (i = 0; i <= t - 1; i++) {
    if (x == a - da * i) {
      printf("YES");
      m = getchar();
      return 0;
    }
    for (j = 0; j <= t - 1; j++) {
      if (x == b - db * j) {
        printf("YES");
        m = getchar();
        return 0;
      }
      int c = a + b - i * da - j * db;
      if (c == x) {
        printf("YES");
        m = getchar();
        return 0;
      }
      if (c < x) {
        break;
      }
    }
  }
  printf("NO");
  scanf("%d", &a);
}
