#include <bits/stdc++.h>
using namespace std;
const int MaxN = 200005;
const double eps = 1e-7;
const double DINF = 1e100;
const int INF = 1000000006;
const long long LINF = 1000000000000000005ll;
int x, t, a, b, da, db;
int main() {
  ios::sync_with_stdio(false);
  cin >> x >> t >> a >> b >> da >> db;
  if (x == 0) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < t; ++i) {
    long long A = a - i * da;
    long long B = b - i * db;
    if (A == x || B == x) {
      cout << "YES" << endl;
      return 0;
    }
  }
  for (int i = 0; i < t; ++i) {
    long long A = a - i * da;
    for (int j = 0; j < t; j++) {
      long long B = b - j * db;
      if (A + B == x) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
