#include <bits/stdc++.h>
using namespace std;
int i, j, k, l, x, y, z, t, m, n, ans, p, q, a, b;
int main() {
  cin >> n >> t >> x >> y >> p >> q;
  if (n == 0) {
    printf("YES");
    return 0;
  }
  for (i = 0; i < t; i++) {
    a = x - i * p;
    if (a == n) {
      printf("YES");
      return 0;
    }
    for (j = 0; j < t; j++) {
      b = y - j * q;
      if (a + b == n || b == n) {
        printf("YES");
        return 0;
      }
    }
  }
  printf("NO");
  return 0;
}
