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