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