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