#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, a1, b1;
  cin >> x >> t >> a >> b >> a1 >> b1;
  vector<int> disa;
  vector<int> disb;
  for (int i = 0; i < t; i++) {
    disa.push_back(a);
    a = a - a1;
  }
  disa.push_back(0);
  for (int j = 0; j < t; j++) {
    disb.push_back(b);
    b = b - b1;
  }
  disb.push_back(0);
  for (int i = 0; i <= t; i++) {
    for (int j = 0; j <= t; j++) {
      if (disa[i] + disb[j] == x) {
        cout << "YES";
        return 0;
      }
    }
  }
  cout << "NO";
  return 0;
}
