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