#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int x, t, a, b, c, d;
  cin >> x >> t >> a >> b >> c >> d;
  vector<int> niloy, bro;
  for (int i = 0; i < t; ++i) {
    int n = a - (i * c);
    int m = b - (i * d);
    niloy.push_back(n);
    bro.push_back(m);
  }
  bool isleaf = false;
  for (int i = 0; i < t; ++i) {
    if (niloy[i] == x or bro[i] == x) {
      isleaf = true;
      break;
    } else if (niloy[i] < x) {
      for (int j = 0; j < t; ++j) {
        if (niloy[i] + bro[j] == x) {
          isleaf = true;
          break;
        }
      }
    }
    if (isleaf) {
      break;
    }
  }
  if (isleaf or x == 0) {
    cout << "YES"
         << "\n";
  } else {
    cout << "NO"
         << "\n";
  }
  return 0;
}
