#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, q, w, i, k;
  cin >> x >> t >> a >> b >> q >> w;
  for (i = 0; i < t; i++)
    for (k = 0; k < t; k++)
      if (a - q * i + b - w * k == x || a - q * i == x || b - w * k == x ||
          x == 0) {
        cout << "YES";
        return 0;
      }
  cout << "NO";
}
