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