#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  vector<int> scoresa, scoresb;
  if (x == 0) {
    cout << "YES" << endl;
    return 0;
  }
  for (typeof(t) i = 0; i < (t); ++i) {
    scoresa.push_back(a);
    scoresb.push_back(b);
    if (a == x || b == x) {
      cout << "YES" << endl;
      return 0;
    }
    a = a - da;
    b = b - db;
  }
  for (typeof(((int)((scoresa).size()))) i = 0; i < (((int)((scoresa).size())));
       ++i)
    for (typeof(((int)((scoresb).size()))) j = 0;
         j < (((int)((scoresb).size()))); ++j) {
      if (scoresa[i] + scoresb[j] == x) {
        cout << "YES" << endl;
        return 0;
      }
    }
  cout << "NO" << endl;
  return 0;
}
