#include <bits/stdc++.h>
int main() {
  int score, t, a, b, da, db, ans, i, j, mark, ans1, ans2;
  while (scanf("%d%d%d%d%d%d", &score, &t, &a, &b, &da, &db) != EOF) {
    mark = 0;
    for (i = 0; i < t; i++) {
      for (j = 0; j < t; j++) {
        ans = a - i * da + b - j * db;
        if (ans == score) {
          mark = 1;
          break;
        }
        if (ans < score) break;
      }
      if (mark == 1) break;
    }
    if (mark == 0) {
      for (i = 0; i < t; i++) {
        ans1 = a - i * da;
        ans2 = b - i * db;
        if (ans1 == score || ans2 == score) {
          mark = 1;
          break;
        }
      }
    }
    if (mark == 1 || score == 0)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
