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