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