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