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