#include <bits/stdc++.h>
using namespace std;
int p[1005];
int q[1005];
int main() {
  int x, t, a, b, c, d;
  cin >> x >> t >> a >> b >> c >> d;
  int sign = 0;
  for (int i = 0; i < t; i++) {
    p[i] = a - i * c;
    q[i] = b - i * d;
  }
  p[t] = 0;
  q[t] = 0;
  for (int i = 0; i <= t; i++) {
    for (int j = 0; j <= t; j++) {
      if (p[i] + q[j] == x) {
        sign = 1;
        break;
      }
    }
    if (sign) break;
  }
  if (x == 0 || t == 0) sign = 1;
  if (sign) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
