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