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