#include <bits/stdc++.h>
using namespace std;
int a, b, x, t, da, db;
void solve() {
  int i, j;
  if (x == 0) {
    cout << "YES\n";
    return;
  }
  for (i = 0; i < t; i++)
    for (j = 0; j < t; j++)
      if (a - i * da + b - j * db == x || a - i * da == x || b - j * db == x) {
        cout << "YES\n";
        return;
      }
  cout << "NO\n";
}
void input() {
  while (cin >> x >> t >> a >> b >> da >> db) {
    solve();
  }
}
int main() {
  input();
  return 0;
}
