#include <bits/stdc++.h>
short x, t, a, b, da, db;
short i, j, k;
short ca[301], cb[301];
int main() {
  scanf("%hd %hd %hd %hd %hd %hd\n", &x, &t, &a, &b, &da, &db);
  for (i = 0; i < t; ++i) {
    ca[i] = a - i * da;
    cb[i] = b - i * db;
  }
  if (x == 0) {
    printf("YES\n");
    return 0;
  }
  for (i = 0; i < t; ++i) {
    for (j = 0; j < t; ++j)
      if (ca[i] + cb[j] == x) {
        printf("YES\n");
        return 0;
      }
    if (x == ca[i] || x == cb[i]) {
      printf("YES\n");
      return 0;
    }
  }
  printf("NO\n");
  return 0;
}
