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