#include <bits/stdc++.h>
using namespace std;
int c1[310], c2[310];
int main() {
  int x, t, a, b, da, db;
  while (scanf("%d %d %d %d %d %d", &x, &t, &a, &b, &da, &db) != EOF) {
    c1[0] = a, c2[0] = b;
    for (int i = 1; i < t; i++) {
      c1[i] = c1[i - 1] - da;
      c2[i] = c2[i - 1] - db;
    }
    c1[t] = 0;
    c2[t] = 0;
    bool flag = false;
    for (int i = 0; i <= t; i++) {
      for (int j = 0; j <= t; j++) {
        if (c1[i] + c2[j] == x) {
          flag = true;
          break;
        }
      }
      if (flag) break;
    }
    if (flag) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
