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