#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int x, a, b, da, db, t;
  cin >> x >> t >> a >> b >> da >> db;
  vector<int> v, z;
  int tcop1 = t, tcop2 = t;
  while (tcop1 > 0) {
    v.push_back(a);
    a -= da;
    tcop1--;
  }
  while (tcop2 > 0) {
    z.push_back(b);
    b -= db;
    tcop2--;
  }
  v.push_back(0);
  z.push_back(0);
  bool flag = false;
  for (int i = 0; i < v.size(); i++)
    for (int j = 0; j < z.size(); j++)
      if ((v[i] + z[j]) == x) {
        flag = true;
        break;
      }
  if (flag)
    cout << "YES";
  else
    cout << "NO";
  int _;
  cin >> _;
  return 0;
}
