#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  ios::sync_with_stdio(false);
  bool ok = false;
  vector<int> v1, v2;
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  for (int i = 0; i < t; ++i) {
    v1.push_back(a - da * i);
    v2.push_back(b - db * i);
  }
  for (int i = 0; i < t; ++i) {
    if (v1[i] == x || v2[i] == x) ok = true;
    for (int j = 0; j < t; ++j) {
      if (v1[i] + v2[j] == x) ok = true;
    }
  }
  cout << (ok || x == 0 ? "YES" : "NO");
  return 0;
}
