#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  bool ff = false;
  if (x == 0) ff = true;
  for (int i = 0; i < t && !ff; i++) {
    for (int j = 0; j < t && !ff; j++) {
      if (a - i * da + b - j * db == x) {
        ff = true;
      }
      if (a - i * da == x || b - j * db == x) ff = true;
    }
  }
  if (ff)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
