#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  int bb = b;
  for (int i = 0; i < t; i++) {
    for (int q = 0; q < t; q++) {
      if (b + a == x || x == 0 || a == x || b == x) {
        cout << "YES" << endl;
        return 0;
      }
      b -= db;
    }
    a -= da;
    b = bb;
  }
  cout << "NO" << endl;
}
