#include <bits/stdc++.h>
int x, t, a, b, da, db;
int main() {
  scanf("%d %d %d %d %d %d", &x, &t, &a, &b, &da, &db);
  for (int i = 0; i < t; i++)
    for (int j = 0; j < t; j++) {
      int pa = a - i * da;
      int pb = b - j * db;
      if (x == pa + pb || x == pa || x == pb || x == 0) {
        printf("YES\n");
        return 0;
      }
    }
  printf("NO\n");
  return 0;
}
