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