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