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