#include <bits/stdc++.h>
using namespace std;
int binpow(int k) {
  if (k == 0) return 1;
  if (k % 2) return binpow(k - 1) << 1;
  int res = binpow(k / 2);
  return res * res;
}
int main() {
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  for (int i = 0; i < (t); ++i) {
    for (int j = 0; j < (t); ++j) {
      if (a - da * i + b - db * j == x) {
        cout << "YES" << endl;
        exit(0);
      }
      if (b - db * j == x) {
        cout << "YES" << endl;
        exit(0);
      }
    }
    if (a - da * i == x) {
      cout << "YES" << endl;
      exit(0);
    }
  }
  if (!x) {
    cout << "YES" << endl;
    exit(0);
  }
  cout << "NO" << endl;
  return 0;
}
