#include <bits/stdc++.h>
using namespace std;
struct $ {
  $() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
  }
} $;
const int N = 200005;
int main() {
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  map<int, int> m;
  for (int i = 0; i < t; i++) {
    int ca = a - i * da;
    int cb = b - i * db;
    m[ca]++;
    m[cb]++;
    for (int j = 0; j < t; j++) {
      int cur = ca + b - j * db;
      m[cur]++;
    }
  }
  if (m[x] || x == 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
