#include <bits/stdc++.h>
using namespace std;
void solve() {
  int x, t;
  scanf("%d %d ", &x, &t);
  pair<int, int> pts;
  scanf(" %d %d", &pts.first, &pts.second);
  pair<int, int> delta;
  scanf(" %d %d", &delta.first, &delta.second);
  bool ok = false;
  for (int i = 0; i < (int)(t); i++)
    for (int j = 0; j < (int)(t); j++) {
      int r = pts.first - i * delta.first + pts.second - j * delta.second;
      ok |= r == x;
      ok |= x == pts.first - i * delta.first;
      ok |= x == pts.second - j * delta.second;
    }
  ok |= x == 0;
  printf("%s\n", ok ? "YES" : "NO");
}
int main() {
  solve();
  return 0;
}
