#include <bits/stdc++.h>
using namespace std;
template <typename T>
string tostr(const T& t) {
  ostringstream os;
  os << t;
  return os.str();
}
int main(int argc, char* argv[]) {
  ios_base::sync_with_stdio(0);
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  if (x == 0) {
    cout << "YES" << endl;
    return 0;
  }
  for (int t1 = 0; t1 < t; ++t1) {
    int n1 = a - da * t1;
    int n2 = b - db * t1;
    if (n1 == x || n2 == x) {
      cout << "YES" << endl;
      return 0;
    }
    for (int t2 = 0; t2 < t; ++t2) {
      int n3 = a + b - da * t1 - db * t2;
      if (n3 == x) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
