#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, da, db, aa[700], bb[700], i, j;
  cin >> x >> t >> a >> b >> da >> db;
  aa[0] = a;
  bb[0] = b;
  i = 1;
  while (t) {
    a -= da;
    b -= db;
    aa[i] = a;
    bb[i] = b;
    i++;
    t--;
  }
  int n = i - 1;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      if (aa[i] + bb[j] == x || aa[i] == x || bb[j] == x) {
        cout << "YES";
        return 0;
      }
  if (x)
    cout << "NO";
  else
    cout << "YES";
  return 0;
}
