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