#include <bits/stdc++.h>
int v[2][601];
int main() {
  int x, t, a, b, da, db;
  scanf("%d%d%d%d%d%d", &x, &t, &a, &b, &da, &db);
  if (x == 0) {
    printf("YES\n");
    return 0;
  }
  memset(v, 0, sizeof(v));
  v[0][0] = a;
  v[1][0] = b;
  for (int i = 1; i < t; i++) {
    v[0][i] = v[0][i - 1] - da;
    v[1][i] = v[1][i - 1] - db;
  }
  v[0][t] = 0;
  v[1][t] = 0;
  for (int i = 0; i <= t; i++)
    for (int j = 0; j <= t; j++) {
      if (v[0][i] + v[1][j] == x) {
        printf("YES\n");
        return 0;
      }
    }
  printf("NO\n");
  return 0;
}
