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