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