#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" << endl;
    return 0;
  } else {
    for (int i = 0; i < t; i++) {
      if (a - (da * i) == x) {
        cout << "YES" << endl;
        return 0;
      }
    }
    for (int i = 0; i < t; i++) {
      if (b - (db * i) == x) {
        cout << "YES" << endl;
        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" << endl;
          return 0;
        }
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
