#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, da, b, db;
  cin >> x >> t >> a >> b >> da >> db;
  vector<int> v1(t + 1);
  vector<int> v2(t + 1);
  vector<int> v3(t * t + 2 * t + 1);
  for (int i = 0; i < t; i++) v1[i] = a - da * i;
  v1[t] = 0;
  for (int i = 0; i < t; i++) v2[i] = b - db * i;
  v2[t] = 0;
  for (int i = 0; i < t + 1; i++)
    for (int j = 0; j < t + 1; j++) v3[(t + 1) * i + j] = v1[i] + v2[j];
  bool trobat = false;
  int i = 0;
  while (!trobat and i < t * t + 2 * t + 1) {
    if (v3[i] == x)
      trobat = true;
    else
      i++;
  }
  if (trobat)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
