#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, da, db, z;
  vector<int> pointa, pointb;
  scanf("%d %d %d %d %d %d", &x, &t, &a, &b, &da, &db);
  if (x == 0) {
    printf("YES\n");
    return 0;
  }
  z = t;
  while (a >= 0 && z) {
    pointa.push_back(a);
    a -= da;
    z--;
  }
  z = t;
  while (b >= 0 && z) {
    pointb.push_back(b);
    b -= db;
    z--;
  }
  for (int i = 0; i < pointa.size(); i++) {
    for (int j = 0; j < pointb.size(); j++) {
      if ((abs(x - pointa[i]) == pointb[j] && x - pointa[i] > 0) ||
          pointa[i] == x || pointb[j] == x) {
        printf("YES\n");
        return 0;
      }
    }
  }
  printf("NO\n");
  return 0;
}
