#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  for (int i = c; i >= c - (b - 1) * e; i -= e) {
    if (i == a) {
      cout << "YES";
      return 0;
    }
  }
  for (int j = d; j >= d - (b - 1) * f; j -= f) {
    if (j == a) {
      cout << "YES";
      return 0;
    }
  }
  if (a == 0) {
    cout << "YES";
    return 0;
  }
  if (c + d < a || c - (b - 1) * e + d - (b - 1) * f > a) {
    cout << "NO";
    return 0;
  }
  for (int i = c; i >= c - (b - 1) * e; i -= e) {
    for (int j = d; j >= d - (b - 1) * f; j -= f) {
      if (i + j == a) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
  return 0;
}
