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