#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  if (x == a || x == b || x == 0) {
    cout << "YES";
    return 0;
  }
  int tmp;
  for (int i = (int)0; i < (int)t; i++) {
    tmp = b;
    for (int j = (int)0; j < (int)t; j++) {
      if (a == x || tmp == x || a + tmp == x) {
        cout << "YES";
        return 0;
      }
      tmp = tmp - db;
    }
    a = a - da;
  }
  cout << "NO";
  return 0;
}
