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