#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
const long long int P = 1000000007;
const double eps = 1e-6;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int x, t, a, b, da, db;
  cin >> x >> t >> a >> b >> da >> db;
  vector<int> one, two;
  one.push_back(0);
  two.push_back(0);
  for (int i = 0; i < t; i++) {
    one.push_back(a - (i * da));
    two.push_back(b - (i * db));
  }
  int first = 0;
  for (int i = 0; i <= t; i++)
    for (int j = 0; j <= t; j++)
      if (one[i] + two[j] == x) first = 1;
  if (first)
    cout << "YES", cout << "\n";
  else
    cout << "NO", cout << "\n";
  cerr << "\nTime elapsed : " << 1000 * clock() / CLOCKS_PER_SEC << " ms\n";
  return 0;
}
