#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, da, db, i, k;
  cin >> x >> t >> a >> b >> da >> db;
  int pointsa[t + 1], bpoints[t + 1];
  pointsa[t] = 0;
  bpoints[t] = 0;
  for (i = 0; i < t; i++) {
    pointsa[i] = a - da * i;
    bpoints[i] = b - db * i;
  }
  for (i = 0; i <= t; i++)
    for (k = 0; k <= t; k++)
      if (pointsa[i] + bpoints[k] == x) {
        cout << "YES" << endl;
        return 0;
      }
  cout << "NO" << endl;
  return 0;
}
