#include <bits/stdc++.h>
using namespace std;
void solve() {
  int diem, t, a, b, da, db, i, j;
  scanf("%d%d%d%d%d%d", &diem, &t, &a, &b, &da, &db);
  for (i = 0; i < t; i++) {
    for (j = 0; j < t; j++) {
      if (a - i * da + b - j * db == diem || a - i * da == diem ||
          b - j * db == diem) {
        cout << "YES\n";
        return;
      }
    }
  }
  if (diem == 0)
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  solve();
  return 0;
}
