#include <bits/stdc++.h>
using namespace std;
int X, T, A, B, Da, Db;
int main() {
  int i, j, p, q;
  cin >> X >> T >> A >> B >> Da >> Db;
  if (X == 0) {
    cout << "YES" << '\n';
    return 0;
  }
  for (i = 0; i < T; i++) {
    for (j = 0; j < T; j++) {
      int sc1 = A - i * Da;
      int sc2 = B - j * Db;
      if (sc1 + sc2 == X || sc1 == X || sc2 == X) {
        cout << "YES" << '\n';
        return 0;
      }
    }
  }
  cout << "NO" << '\n';
  return 0;
}
